summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-07-08 20:46:06 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-07-08 20:46:06 +0300
commit8a579acddeae0c0106e15d82aa7220ac01deba84 (patch)
tree4e11155e4180b32b666e78ced6345c2017603591 /test
parent9a39b0101a506738b8e7fd68af39fc73e329025a (diff)
downloadunit-8a579acddeae0c0106e15d82aa7220ac01deba84.tar.gz
unit-8a579acddeae0c0106e15d82aa7220ac01deba84.tar.bz2
Tests: made openssl certificates more strong to avoid errors.
Diffstat (limited to '')
-rw-r--r--test/test_tls.py4
-rw-r--r--test/unit/applications/tls.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index f055aa24..14efb3a7 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -139,7 +139,7 @@ class TestTLS(TestApplicationTLS):
self.assertEqual(
self.conf_get('/certificates/default/key'),
- 'RSA (1024 bits)',
+ 'RSA (2048 bits)',
'certificate key rsa',
)
@@ -250,7 +250,7 @@ default_ca = myca
[ myca ]
new_certs_dir = %(dir)s
database = %(database)s
-default_md = sha1
+default_md = sha256
policy = myca_policy
serial = %(certserial)s
default_days = 1
diff --git a/test/unit/applications/tls.py b/test/unit/applications/tls.py
index 83cc1a03..c8287ac5 100644
--- a/test/unit/applications/tls.py
+++ b/test/unit/applications/tls.py
@@ -68,7 +68,7 @@ class TestApplicationTLS(TestApplicationProto):
with open(self.testdir + '/openssl.conf', 'w') as f:
f.write(
"""[ req ]
-default_bits = 1024
+default_bits = 2048
encrypt_key = no
distinguished_name = req_distinguished_name
[ req_distinguished_name ]"""