Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure. If an accurate representation is needed, asn1.Unmarshal the raw subject or issuer as an RDNSequence.
Name | Type | Description | Notes |
---|---|---|---|
country | list[str] | [optional] | |
extra_names | list[AttributeTypeAndValue] | ExtraNames contains attributes to be copied, raw, into any marshaled distinguished names. Values override any attributes with the same OID. The ExtraNames field is not populated when parsing, see Names. | [optional] |
locality | list[str] | [optional] | |
names | list[AttributeTypeAndValue] | Names contains all parsed attributes. When parsing distinguished names, this can be used to extract non-standard attributes that are not parsed by this package. When marshaling to RDNSequences, the Names field is ignored, see ExtraNames. | [optional] |
serial_number | str | [optional] | |
street_address | list[str] | [optional] |