aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends/test_openssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-08-04 23:31:15 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-08-04 23:31:15 -0400
commit2fe409eb008acdfe598386f7f17a502a535e5864 (patch)
tree8450f3b4ab4a1526cd9624a4d3e1b3be1818ec97 /tests/hazmat/backends/test_openssl.py
parentda0bad39ceda2ed5a8c351602183ebb67fcbea20 (diff)
parent7d792fcf713927424e26e7cd1347cb197f658792 (diff)
downloadcryptography-2fe409eb008acdfe598386f7f17a502a535e5864.tar.gz
cryptography-2fe409eb008acdfe598386f7f17a502a535e5864.tar.bz2
cryptography-2fe409eb008acdfe598386f7f17a502a535e5864.zip
Merge pull request #2202 from reaperhulk/cert-builder-checks
check that required fields are present in builder when signing
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r--tests/hazmat/backends/test_openssl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 0f2c80a6..bd9aadb8 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -518,6 +518,8 @@ class TestOpenSSLSignX509Certificate(object):
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(