Upgrade PyOpenSSL, remove unit tests using TLS 1.0 and 1.1 (#274)

* Upgrade pyOpenSSL to v22.1.0
* Remove unit test using TLS 1.0 and 1.1
* Upgrade base image to alpine 3.15.6
This commit is contained in:
Marian Steinbach 2022-10-18 09:48:25 +02:00 committed by GitHub
parent 2da7c81b43
commit a864675d85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 22 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:3.15.0
FROM alpine:3.15.6
WORKDIR /workdir

View file

@ -26,26 +26,6 @@ class TestCertificateChecker(unittest.TestCase):
self.assertIsNone(result[url]['exception'])
self.assertEqual(result[url]['issuer']['O'], 'DigiCert Inc')
def test_tls_v_1_0(self):
"""Load a certificate for a TLS v1.0 server"""
url = 'https://tls-v1-0.badssl.com:1010/'
config = Config(urls=[url])
checker = certificate.Checker(config=config, previous_results={})
result = checker.run()
self.assertIn(url, result)
self.assertIsNone(result[url]['exception'])
self.assertEqual(result[url]['subject']['CN'], '*.badssl.com')
def test_tls_v_1_1(self):
"""Load a certificate for a TLS v1.1 server"""
url = 'https://tls-v1-1.badssl.com:1011/'
config = Config(urls=[url])
checker = certificate.Checker(config=config, previous_results={})
result = checker.run()
self.assertIn(url, result)
self.assertIsNone(result[url]['exception'])
self.assertEqual(result[url]['subject']['CN'], '*.badssl.com')
def test_tls_v_1_2(self):
"""Load a certificate for a TLS v1.2 server"""
url = 'https://tls-v1-2.badssl.com:1012/'

View file

@ -25,7 +25,7 @@ protobuf==3.19.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pyOpenSSL==20.0.1
pyOpenSSL==22.1.0
pytz==2021.3
PyYAML==5.4.1
redis==3.5.3