From 9089c91294497aaff3e5204b73365ba687c6ab7e Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 20 Apr 2015 22:15:20 -0500 Subject: handle otherName, x400Address, and ediPartyName in OpenSSL backend --- tests/test_x509_ext.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3