Merge "Bump crypto requirement to accomodate security standards"
This commit is contained in:
commit
e4f2cf4a5f
@ -78,7 +78,7 @@ class TestFunctional(tests.BaseTestCase):
|
|||||||
|
|
||||||
def create_cert(self, cn, issuer=None, signing_key=None):
|
def create_cert(self, cn, issuer=None, signing_key=None):
|
||||||
key = crypto.PKey()
|
key = crypto.PKey()
|
||||||
key.generate_key(crypto.TYPE_RSA, 1024)
|
key.generate_key(crypto.TYPE_RSA, 2048)
|
||||||
|
|
||||||
cert = crypto.X509()
|
cert = crypto.X509()
|
||||||
subject = cert.get_subject()
|
subject = cert.get_subject()
|
||||||
@ -97,7 +97,7 @@ class TestFunctional(tests.BaseTestCase):
|
|||||||
else:
|
else:
|
||||||
cert.set_issuer(subject)
|
cert.set_issuer(subject)
|
||||||
if signing_key:
|
if signing_key:
|
||||||
cert.sign(signing_key, 'sha1')
|
cert.sign(signing_key, 'sha256')
|
||||||
else:
|
else:
|
||||||
cert.sign(key, 'sha1')
|
cert.sign(key, 'sha1')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user