diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-06-26 20:13:56 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-06-26 20:13:56 -0400 |
commit | f728ee53970387e40cb119a5e9a65d55b450fb6e (patch) | |
tree | ecd9aa231b1f794f0f96782c499667af4c982a2b /src | |
parent | 354fc56e6a9781f3f2213537c3c65d7e720dfcb4 (diff) | |
parent | 7e2fbe670ac66bc77470facfd8471ba2f0e1e153 (diff) | |
download | cryptography-f728ee53970387e40cb119a5e9a65d55b450fb6e.tar.gz cryptography-f728ee53970387e40cb119a5e9a65d55b450fb6e.tar.bz2 cryptography-f728ee53970387e40cb119a5e9a65d55b450fb6e.zip |
Merge pull request #2066 from reaperhulk/csr-builder-set-subject
fix coverage in CSR builder
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/x509.py | 4 |
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 |