diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-09 12:54:18 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-09 12:54:18 -0400 |
commit | 5d37afc050abada60f0fe5a0e2e31dc3cc5349f4 (patch) | |
tree | 528f462b4b70fdf66ad1a17903234a47ca403eef /tests/hazmat/backends/test_openssl.py | |
parent | 8020e564eaee293dfe743623d75629bd3f51eb87 (diff) | |
parent | 20175f873b9264bd49301e743386bbeeda255ae4 (diff) | |
download | cryptography-5d37afc050abada60f0fe5a0e2e31dc3cc5349f4.tar.gz cryptography-5d37afc050abada60f0fe5a0e2e31dc3cc5349f4.tar.bz2 cryptography-5d37afc050abada60f0fe5a0e2e31dc3cc5349f4.zip |
Merge pull request #2232 from reaperhulk/encode-ian
support issuer alternative name encoding
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 8f559c84..debea5a2 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -4,7 +4,6 @@ from __future__ import absolute_import, division, print_function -import datetime import os import subprocess import sys @@ -15,7 +14,6 @@ import pretend import pytest from cryptography import utils -from cryptography import x509 from cryptography.exceptions import InternalError, _Reasons from cryptography.hazmat.backends.interfaces import RSABackend from cryptography.hazmat.backends.openssl.backend import ( @@ -514,27 +512,6 @@ class TestOpenSSLSignX509Certificate(object): with pytest.raises(TypeError): backend.create_x509_certificate(object(), private_key, DummyHash()) - def test_checks_for_unsupported_extensions(self): - private_key = RSA_KEY_2048.private_key(backend) - builder = x509.CertificateBuilder().subject_name(x509.Name([ - x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'), - ])).issuer_name(x509.Name([ - x509.NameAttribute(x509.OID_COUNTRY_NAME, u'US'), - ])).public_key( - private_key.public_key() - ).serial_number( - 777 - ).not_valid_before( - datetime.datetime(1999, 1, 1) - ).not_valid_after( - datetime.datetime(2020, 1, 1) - ).add_extension( - x509.IssuerAlternativeName([x509.DNSName(u"crypto.io")]), False - ) - - with pytest.raises(NotImplementedError): - builder.sign(private_key, hashes.SHA1(), backend) - class TestOpenSSLSerialisationWithOpenSSL(object): def test_pem_password_cb_buffer_too_small(self): |