diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-04-20 22:15:20 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-04-21 22:54:33 -0500 |
commit | 9089c91294497aaff3e5204b73365ba687c6ab7e (patch) | |
tree | e0dd71ca9767ba57de90d1e7cafed2c2d168a4b3 /tests/test_x509_ext.py | |
parent | e37ca984fcf093f4382eb3f19abf10b0862600da (diff) | |
download | cryptography-9089c91294497aaff3e5204b73365ba687c6ab7e.tar.gz cryptography-9089c91294497aaff3e5204b73365ba687c6ab7e.tar.bz2 cryptography-9089c91294497aaff3e5204b73365ba687c6ab7e.zip |
handle otherName, x400Address, and ediPartyName in OpenSSL backend
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r-- | tests/test_x509_ext.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index a7e04156..5f175c4d 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -757,3 +757,14 @@ class TestRSASubjectAlternativeNameExtension(object): dns = san.get_values_for_type(x509.DNSName) assert dns == [u"www.cryptography.io", u"cryptography.io"] + + def test_unsupported_other_name(self, backend): + cert = _load_cert( + os.path.join( + "x509", "custom", "san_other_name.pem" + ), + x509.load_pem_x509_certificate, + backend + ) + with pytest.raises(x509.UnsupportedGeneralNameType): + cert.extensions |