diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-06-20 14:20:20 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-06-20 14:20:20 -0400 |
commit | f1c176743da9414649f45b03bcbc56055e39e83c (patch) | |
tree | a12baeb21d7b632d156a06bed4f7f0bc65ff4ea4 /tests/test_x509_ext.py | |
parent | 49e6f66af155a6a11cc007315ad090e9bfc26aa0 (diff) | |
download | cryptography-f1c176743da9414649f45b03bcbc56055e39e83c.tar.gz cryptography-f1c176743da9414649f45b03bcbc56055e39e83c.tar.bz2 cryptography-f1c176743da9414649f45b03bcbc56055e39e83c.zip |
Refs #1947 -- add support for IAN to the OpenSSL backend
Diffstat (limited to 'tests/test_x509_ext.py')
-rw-r--r-- | tests/test_x509_ext.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_x509_ext.py b/tests/test_x509_ext.py index 6a23479f..62d9f83d 100644 --- a/tests/test_x509_ext.py +++ b/tests/test_x509_ext.py @@ -1258,6 +1258,23 @@ class TestIssuerAlternativeName(object): assert san != object() +@pytest.mark.requires_backend_interface(interface=RSABackend) +@pytest.mark.requires_backend_interface(interface=X509Backend) +class TestRSAIssuerAlternativeNameExtension(object): + def test_uri(self, backend): + cert = _load_cert( + os.path.join("x509", "custom", "ian_uri.pem"), + x509.load_pem_x509_certificate, + backend, + ) + ext = cert.extensions.get_extension_for_oid( + x509.OID_ISSUER_ALTERNATIVE_NAME + ) + assert list(ext.value) == [ + x509.UniformResourceIdentifier(u"http://path.to.root/root.crt"), + ] + + class TestSubjectAlternativeName(object): def test_get_values_for_type(self): san = x509.SubjectAlternativeName( |