aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-06-26 17:59:05 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-06-26 18:51:29 -0500
commit7e2fbe670ac66bc77470facfd8471ba2f0e1e153 (patch)
treeecd9aa231b1f794f0f96782c499667af4c982a2b /src
parentff9178064dd38d27ccd8de5ac7f8d9ced202f9ea (diff)
downloadcryptography-7e2fbe670ac66bc77470facfd8471ba2f0e1e153.tar.gz
cryptography-7e2fbe670ac66bc77470facfd8471ba2f0e1e153.tar.bz2
cryptography-7e2fbe670ac66bc77470facfd8471ba2f0e1e153.zip
test notimplementederror for unsupported csr extensions in backends
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/x509.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptography/x509.py b/src/cryptography/x509.py
index 21e18ddd..24d501e5 100644
--- a/src/cryptography/x509.py
+++ b/src/cryptography/x509.py
@@ -1468,6 +1468,10 @@ class CertificateSigningRequestBuilder(object):
"""
if isinstance(extension, BasicConstraints):
extension = Extension(OID_BASIC_CONSTRAINTS, critical, extension)
+ elif isinstance(extension, SubjectAlternativeName):
+ extension = Extension(
+ OID_SUBJECT_ALTERNATIVE_NAME, critical, extension
+ )
else:
raise NotImplementedError('Unsupported X.509 extension.')
# TODO: This is quadratic in the number of extensions