Tls module

Certificate_Names

structsince 0.27.0Source

Slices into the DER the names were read from: they are valid as long as it is.

Fields

dns: [..] string
The dNSName entries, in the order the certificate lists them.
addresses: [..] string
The iPAddress entries: 4 raw bytes for IPv4, 16 for IPv6.
common_name: string
The first common name of the subject (UTF8String, PrintableString, IA5String and TeletexString values; a BMPString only if every character is ASCII).
has_common_name: bool
common_name_unreadable: bool
Set when the common name could not be read as text (a zero byte inside it, an unknown string type).

See also