💾 Archived View for tris.fyi › pydoc › cryptography.x509.name captured on 2022-01-08 at 13:57:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2022-03-01)

-=-=-=-=-=-=-

Back to module index

Go to module by name

cryptography.x509

cryptography

cryptography.x509.name

This module has no docstring.

Classes

Enum


    Generic enumeration.

    Derive from this class to define new enumerations.
    

Name

get_attributes_for_oid(self, oid) -> List[cryptography.x509.name.NameAttribute]
public_bytes(self, backend=None) -> bytes
rfc4514_string(self) -> str


          Format as RFC4514 Distinguished Name string.
          For example 'CN=foobar.com,O=Foo Corp,C=US'

          An X.509 name is a two-level structure: a list of sets of attributes.
          Each list element is separated by ',' and within each list element, set
          elements are separated by '+'. The latter is almost never used in
          real world certificates. According to RFC4514 section 2.1 the
          RDNSequence must be reversed when converting to string representation.
        
rdns = <property object at 0x7f0567522770>

NameAttribute

rfc4514_string(self) -> str


          Format as RFC4514 Distinguished Name string.

          Use short attribute name if available, otherwise fall back to OID
          dotted string.
        
oid = <property object at 0x7f056751d220>
value = <property object at 0x7f056751d270>

NameOID

BUSINESS_CATEGORY = <ObjectIdentifier(oid=2.5.4.15, name=businessCategory)>
COMMON_NAME = <ObjectIdentifier(oid=2.5.4.3, name=commonName)>
COUNTRY_NAME = <ObjectIdentifier(oid=2.5.4.6, name=countryName)>
DN_QUALIFIER = <ObjectIdentifier(oid=2.5.4.46, name=dnQualifier)>
DOMAIN_COMPONENT = <ObjectIdentifier(oid=0.9.2342.19200300.100.1.25, name=domainComponent)>
EMAIL_ADDRESS = <ObjectIdentifier(oid=1.2.840.113549.1.9.1, name=emailAddress)>
GENERATION_QUALIFIER = <ObjectIdentifier(oid=2.5.4.44, name=generationQualifier)>
GIVEN_NAME = <ObjectIdentifier(oid=2.5.4.42, name=givenName)>
INN = <ObjectIdentifier(oid=1.2.643.3.131.1.1, name=INN)>
JURISDICTION_COUNTRY_NAME = <ObjectIdentifier(oid=1.3.6.1.4.1.311.60.2.1.3, name=jurisdictionCountryName)>
JURISDICTION_LOCALITY_NAME = <ObjectIdentifier(oid=1.3.6.1.4.1.311.60.2.1.1, name=jurisdictionLocalityName)>
JURISDICTION_STATE_OR_PROVINCE_NAME = <ObjectIdentifier(oid=1.3.6.1.4.1.311.60.2.1.2, name=jurisdictionStateOrProvinceName)>
LOCALITY_NAME = <ObjectIdentifier(oid=2.5.4.7, name=localityName)>
OGRN = <ObjectIdentifier(oid=1.2.643.100.1, name=OGRN)>
ORGANIZATIONAL_UNIT_NAME = <ObjectIdentifier(oid=2.5.4.11, name=organizationalUnitName)>
ORGANIZATION_NAME = <ObjectIdentifier(oid=2.5.4.10, name=organizationName)>
POSTAL_ADDRESS = <ObjectIdentifier(oid=2.5.4.16, name=postalAddress)>
POSTAL_CODE = <ObjectIdentifier(oid=2.5.4.17, name=postalCode)>
PSEUDONYM = <ObjectIdentifier(oid=2.5.4.65, name=pseudonym)>
SERIAL_NUMBER = <ObjectIdentifier(oid=2.5.4.5, name=serialNumber)>
SNILS = <ObjectIdentifier(oid=1.2.643.100.3, name=SNILS)>
STATE_OR_PROVINCE_NAME = <ObjectIdentifier(oid=2.5.4.8, name=stateOrProvinceName)>
STREET_ADDRESS = <ObjectIdentifier(oid=2.5.4.9, name=streetAddress)>
SURNAME = <ObjectIdentifier(oid=2.5.4.4, name=surname)>
TITLE = <ObjectIdentifier(oid=2.5.4.12, name=title)>
UNSTRUCTURED_NAME = <ObjectIdentifier(oid=1.2.840.113549.1.9.2, name=unstructuredName)>
USER_ID = <ObjectIdentifier(oid=0.9.2342.19200300.100.1.1, name=userID)>
X500_UNIQUE_IDENTIFIER = <ObjectIdentifier(oid=2.5.4.45, name=x500UniqueIdentifier)>

ObjectIdentifier

dotted_string = <property object at 0x7f056766aae0>

RelativeDistinguishedName

get_attributes_for_oid(self, oid) -> List[cryptography.x509.name.NameAttribute]
rfc4514_string(self) -> str


          Format as RFC4514 Distinguished Name string.

          Within each RDN, attributes are joined by '+', although that is rarely
          used in certificates.
        

Other members

utils = <cryptography.utils._ModuleWithDeprecations object at 0x7f05676abbb0>

Modules

typing