X509Attributes¶
Structure Class¶
X509Attributes
dataclass
¶
Bases: _SerdeShape
Contains X.509 certificate attributes extracted from the certificate.
Attributes¶
extended_key_usages
class-attribute
instance-attribute
¶
Contains a list of Extended Key Usage X.509 v3 extension objects. Each object specifies a purpose for which the certificate public key can be used and consists of a name and an object identifier (OID).
issuer
class-attribute
instance-attribute
¶
issuer: DistinguishedName | None = ...
The distinguished name of the certificate issuer.
key_algorithm
class-attribute
instance-attribute
¶
key_algorithm: str | None = ...
The algorithm that was used to generate the public-private key pair.
key_usages
class-attribute
instance-attribute
¶
A list of Key Usage X.509 v3 extension objects. Each object is a string value that identifies the purpose of the public key contained in the certificate. Possible extension values include DIGITAL_SIGNATURE, KEY_ENCHIPHERMENT, NON_REPUDIATION, and more.
not_after
class-attribute
instance-attribute
¶
not_after: datetime | None = ...
The time after which the certificate is not valid.
not_before
class-attribute
instance-attribute
¶
not_before: datetime | None = ...
The time before which the certificate is not valid.
serial_number
class-attribute
instance-attribute
¶
serial_number: str | None = ...
The serial number assigned by the certificate authority.
subject
class-attribute
instance-attribute
¶
subject: DistinguishedName | None = ...
The distinguished name of the certificate subject.
subject_alternative_names
class-attribute
instance-attribute
¶
subject_alternative_names: list[GeneralName] | None = ...
One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.