class type x509_certificate =object..end
An X.509 certificate in decoded form. The is only the public part, i.e. it includes only the various descriptive fields, the public key, and the signature by the issuer.
method subject : directory_nameThe DN of the subject
method subject_unique_id : Netasn1.Value.bitstring_value optionThe unique ID of the subject
method issuer : directory_nameThe DN of the issuer
method issuer_unique_id : Netasn1.Value.bitstring_value optionThe unique ID of the issuer
method version : intThe "version" field, 1 to 3
method serial_number : stringThe "serialNumber" field
method valid_not_before : floatActivation time as seconds since the epoch ("notBefore" field)
method valid_not_after : floatExpiration time as seconds since the epoch ("notAfter" field)
method signature : Netasn1.Value.bitstring_valueThe signature
method signature_algorithm : oid * Netasn1.Value.value optionThe algorithm of the signature (OID, and algorithm-specific parameters)
method public_key : Netasn1.Value.bitstring_valueThe subject's public key
method public_key_algorithm : oid * Netasn1.Value.value optionThe algorithm of the public key (OID, and algorithm-specific parameters)
method extensions : (oid * string * bool) listExtensions (version 3 certificates) as triples (oid, data, critical).
OIDs can occur several times.