mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 00:00:44 +02:00
Use test_util.load_cert
This commit is contained in:
@@ -264,9 +264,7 @@ class TLSSNI01ResponseTest(unittest.TestCase):
|
||||
|
||||
def test_verify_bad_cert(self):
|
||||
self.assertFalse(self.response.verify_cert(
|
||||
OpenSSL.crypto.load_certificate(
|
||||
OpenSSL.crypto.FILETYPE_PEM,
|
||||
test_util.load_vector('cert.pem'))))
|
||||
test_util.load_cert('cert.pem')))
|
||||
|
||||
def test_simple_verify_bad_key_authorization(self):
|
||||
key2 = jose.JWKRSA.load(test_util.load_vector('rsa256_key.pem'))
|
||||
|
||||
Reference in New Issue
Block a user