2017-05-01 15:14:02 +00:00
|
|
|
Index: pyOpenSSL-17.0.0/tests/test_ssl.py
|
2016-05-17 13:40:41 +00:00
|
|
|
===================================================================
|
2017-05-01 15:14:02 +00:00
|
|
|
--- pyOpenSSL-17.0.0.orig/tests/test_ssl.py
|
|
|
|
+++ pyOpenSSL-17.0.0/tests/test_ssl.py
|
|
|
|
@@ -525,7 +525,7 @@
|
|
|
|
`Context.use_privatekey` takes an `OpenSSL.crypto.PKey` instance.
|
2016-05-17 13:40:41 +00:00
|
|
|
"""
|
|
|
|
key = PKey()
|
|
|
|
- key.generate_key(TYPE_RSA, 128)
|
|
|
|
+ key.generate_key(TYPE_RSA, 2048)
|
|
|
|
ctx = Context(TLSv1_METHOD)
|
|
|
|
ctx.use_privatekey(key)
|
2017-05-01 15:14:02 +00:00
|
|
|
with pytest.raises(TypeError):
|
|
|
|
@@ -546,7 +546,7 @@
|
2016-05-17 13:40:41 +00:00
|
|
|
arguments does not raise an exception.
|
|
|
|
"""
|
|
|
|
key = PKey()
|
|
|
|
- key.generate_key(TYPE_RSA, 128)
|
|
|
|
+ key.generate_key(TYPE_RSA, 2048)
|
|
|
|
|
|
|
|
with open(pemfile, "wt") as pem:
|
|
|
|
pem.write(
|
2017-05-01 15:14:02 +00:00
|
|
|
@@ -849,7 +849,7 @@
|
2016-05-17 13:40:41 +00:00
|
|
|
passphrase. Return the path to the new file.
|
|
|
|
"""
|
|
|
|
key = PKey()
|
|
|
|
- key.generate_key(TYPE_RSA, 128)
|
|
|
|
+ key.generate_key(TYPE_RSA, 2048)
|
|
|
|
pem = dump_privatekey(FILETYPE_PEM, key, "blowfish", passphrase)
|
2017-05-01 15:14:02 +00:00
|
|
|
with open(tmpfile, 'w') as fObj:
|
|
|
|
fObj.write(pem.decode('ascii'))
|