diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-05-18 16:16:44 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-05-18 16:16:44 -0400 |
commit | 61716a438fc1780be867401033ac95e19021e3a5 (patch) | |
tree | 4a0131b350997b33e26e8878bbfb0360a631de41 | |
parent | 0b0179f7311162084f2b8dc6a028e301ca2eb7b2 (diff) | |
parent | 4a1038e0742c720a6046f9bb20f1156ce8624c6b (diff) | |
download | cryptography-61716a438fc1780be867401033ac95e19021e3a5.tar.gz cryptography-61716a438fc1780be867401033ac95e19021e3a5.tar.bz2 cryptography-61716a438fc1780be867401033ac95e19021e3a5.zip |
Merge pull request #1976 from reaperhulk/ocsp-no-check
add ocsp no check
-rw-r--r-- | docs/x509.rst | 18 | ||||
-rw-r--r-- | src/cryptography/x509.py | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/docs/x509.rst b/docs/x509.rst index 850e3df1..3f1af86c 100644 --- a/docs/x509.rst +++ b/docs/x509.rst @@ -699,6 +699,19 @@ X.509 Extensions purposes indicated in the key usage extension. The object is iterable to obtain the list of :ref:`extended key usage OIDs <eku_oids>`. +.. class:: OCSPNoCheck + + .. versionadded:: 0.10 + + This presence of this extension indicates that an OCSP client can trust a + responder for the lifetime of the responder's certificate. CAs issuing + such a certificate should realize that a compromise of the responder's key + is as serious as the compromise of a CA key used to sign CRLs, at least for + the validity period of this certificate. CA's may choose to issue this type + of certificate with a very short lifetime and renew it frequently. This + extension is only relevant when the certificate is an authorized OCSP + responder. + .. class:: AuthorityKeyIdentifier .. versionadded:: 0.9 @@ -1235,6 +1248,11 @@ Extension OIDs Corresponds to the dotted string ``"1.3.6.1.5.5.7.1.1"``. The identifier for the :class:`AuthorityInformationAccess` extension type. +.. data:: OID_OCSP_NO_CHECK + + Corresponds to the dotted string ``"1.3.6.1.5.5.7.48.1.5"``. The identifier + for the :class:`OCSPNoCheck` extension type. + Exceptions ~~~~~~~~~~ diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py index ccb9f6de..7ac06622 100644 --- a/src/cryptography/x509.py +++ b/src/cryptography/x509.py @@ -320,6 +320,10 @@ class ExtendedKeyUsage(object): return not self == other +class OCSPNoCheck(object): + pass + + class BasicConstraints(object): def __init__(self, ca, path_length): if not isinstance(ca, bool): |