diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-07-08 20:46:06 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-07-08 20:46:06 +0300 |
commit | d7516e5f4e7709853c5f010f149acf8822c81788 (patch) | |
tree | faf5aec2369d816451c62c1e00e9eca16d245eb1 | |
parent | 4ea7d714056f63486a4c3a7d0953e513e898b4ba (diff) | |
download | unit-d7516e5f4e7709853c5f010f149acf8822c81788.tar.gz unit-d7516e5f4e7709853c5f010f149acf8822c81788.tar.bz2 |
Tests: made openssl certificates more strong to avoid errors.
-rw-r--r-- | test/test_tls.py | 4 | ||||
-rw-r--r-- | test/unit/applications/tls.py | 2 |
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 ]""" |