diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-07-05 23:38:25 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-07-05 23:38:25 -0500 |
commit | a9e5a21b7fba1acf82fd2c437a7faf888078b9cc (patch) | |
tree | 732ba2ce9d3884155e80cd7e6d160be759badabe /tests | |
parent | 5b57cbfbd735604a9589cb0cf8950ec858b94f7d (diff) | |
download | cryptography-a9e5a21b7fba1acf82fd2c437a7faf888078b9cc.tar.gz cryptography-a9e5a21b7fba1acf82fd2c437a7faf888078b9cc.tar.bz2 cryptography-a9e5a21b7fba1acf82fd2c437a7faf888078b9cc.zip |
support registeredID general name encoding
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_x509.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 78552978..90b3fe5f 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -922,6 +922,7 @@ class TestCertificateSigningRequestBuilder(object): x509.SubjectAlternativeName([ x509.DNSName(u"example.com"), x509.DNSName(u"*.example.com"), + x509.RegisteredID(x509.ObjectIdentifier("1.2.3.4.5.6.7")), ]), critical=False, ).sign(private_key, hashes.SHA256(), backend) @@ -935,6 +936,7 @@ class TestCertificateSigningRequestBuilder(object): assert list(ext.value) == [ x509.DNSName(u"example.com"), x509.DNSName(u"*.example.com"), + x509.RegisteredID(x509.ObjectIdentifier("1.2.3.4.5.6.7")), ] def test_subject_alt_name_unsupported_general_name(self, backend): |