django_ca.constants
- constants¶
- django_ca.constants.ELLIPTIC_CURVE_TYPES¶
Mapping of elliptic curve names to the implementing classes
Key
Value
"brainpoolP256r1"
"brainpoolP384r1"
"brainpoolP512r1"
"secp192r1"
"secp224r1"
"secp256k1"
"secp256r1"
"secp384r1"
"secp521r1"
"sect163k1"
"sect163r2"
"sect233k1"
"sect233r1"
"sect283k1"
"sect283r1"
"sect409k1"
"sect409r1"
"sect571k1"
"sect571r1"
- django_ca.constants.EXTENSION_DEFAULT_CRITICAL¶
Map of ExtensionOIDs to the default critical values as defined in the RFC where they are defined.
Key
Value
False
False
True
False
False
False
True
False
False
True
False
True
True
True
False
True
True
False
False
False
False
False
False
ExtensionOID.AUTHORITY_INFORMATION_ACCESS
False
ExtensionOID.AUTHORITY_INFORMATION_ACCESS
True
- django_ca.constants.EXTENSION_KEYS¶
Map of ExtensionOIDs to keys that are usable as class attributes.
Key
Value
"authority_information_access"
"authority_key_identifier"
"basic_constraints"
"certificate_policies"
"crl_distribution_points"
"crl_number"
"delta_crl_indicator"
"extended_key_usage"
"freshest_crl"
"inhibit_any_policy"
"issuer_alternative_name"
"issuing_distribution_point"
"key_usage"
"name_constraints"
"ocsp_no_check"
"policy_constraints"
"precert_poison"
"precertificate_signed_certificate_timestamps"
"signed_certificate_timestamps"
"subject_alternative_name"
"subject_information_access"
"subject_key_identifier"
"tls_feature"
ExtensionOID.AUTHORITY_INFORMATION_ACCESS
"policy_mappings"
ExtensionOID.AUTHORITY_INFORMATION_ACCESS
"subject_directory_attributes"
- django_ca.constants.EXTENSION_KEY_OIDS¶
Map of extension keys to ExtensionOIDs (the inverse of EXTENSION_KEYS).
- django_ca.constants.HASH_ALGORITHM_NAMES: mappingproxy[Type[cryptography.hazmat.primitives.hashes.HashAlgorithm], str]¶
Map of hash algorithm types in cryptography to standard hash algorithm names. The values can be used for
--algorithm
command line parameter.Key
Value
"SHA-224"
"SHA-256"
"SHA-384"
"SHA3/224"
"SHA3/256"
"SHA3/384"
"SHA3/512"
"SHA-512/224"
"SHA-512/256"
"SHA-512"
"SM3"
Collection of constants used by django-ca.
- class django_ca.constants.ReasonFlags(value)[source]¶
An enumeration for CRL reasons.
This enumeration is a copy of
cryptography.x509.ReasonFlags
. We create a copy because any change in the enumeration would trigger a database migration, so up/downgrading cryptography might cause problems with your Django project.