aboutsummaryrefslogtreecommitdiff
path: root/asn1crypto/x509.py
diff options
context:
space:
mode:
authorMatt Cooper <mttcpr@users.noreply.github.com>2017-11-17 19:29:45 -0500
committerGitHub <noreply@github.com>2017-11-17 19:29:45 -0500
commitdc9d09ca0f6499c1f644a90561f88ff3213c2726 (patch)
treef0ee589c4e14619f6becef5032631a5af316d447 /asn1crypto/x509.py
parent2d9186d2b7b76c89273aa3e7a38efc4c7028af30 (diff)
downloadasn1crypto-dc9d09ca0f6499c1f644a90561f88ff3213c2726.tar.gz
One bug fix and a few missing EKU oids
changed subject_directory_attributes_value(self) to return self._subject_directory_attributes added some missing EKUs to the map
Diffstat (limited to 'asn1crypto/x509.py')
-rw-r--r--asn1crypto/x509.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/asn1crypto/x509.py b/asn1crypto/x509.py
index 25c1a4c..166448c 100644
--- a/asn1crypto/x509.py
+++ b/asn1crypto/x509.py
@@ -1684,6 +1684,8 @@ class KeyPurposeId(ObjectIdentifier):
'1.3.6.1.4.1.311.10.3.12': 'microsoft_document_signing',
'1.3.6.1.4.1.311.10.3.13': 'microsoft_lifetime_signing',
'1.3.6.1.4.1.311.10.3.14': 'microsoft_mobile_device_software',
+ # https://support.microsoft.com/en-us/help/287547/object-ids-associated-with-microsoft-cryptography
+ '1.3.6.1.4.1.311.20.2.2': 'microsoft_smart_card_logon',
# https://opensource.apple.com/source
# - /Security/Security-57031.40.6/Security/libsecurity_keychain/lib/SecPolicy.cpp
# - /libsecurity_cssm/libsecurity_cssm-36064/lib/oidsalg.c
@@ -1719,6 +1721,14 @@ class KeyPurposeId(ObjectIdentifier):
'1.2.840.113625.100.1.32': 'apple_test_smp_encryption',
'1.2.840.113635.100.1.33': 'apple_server_authentication',
'1.2.840.113635.100.1.34': 'apple_pcs_escrow_service',
+ # http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.201-2.pdf
+ '2.16.840.1.101.3.6.8': 'piv_card_authentication',
+ '2.16.840.1.101.3.6.7': 'piv_content_signing',
+ # https://tools.ietf.org/html/rfc4556.html
+ '1.3.6.1.5.2.3.4': 'pkinit_kpclientauth',
+ '1.3.6.1.5.2.3.4': 'pkinit_kpkdc',
+ # https://www.adobe.com/devnet-docs/acrobatetk/tools/DigSig/changes.html
+ '1.2.840.113583.1.1.5': 'adobe_authentic_documents_trust',
}
@@ -1950,7 +1960,7 @@ class Certificate(Sequence):
if not self._processed_extensions:
self._set_extensions()
- return self._key_identifier_value
+ return self._subject_directory_attributes
@property
def key_identifier_value(self):