Remove use of sha1 (#4271)

These are not security critical uses of sha1 but they should still be removed.
This commit is contained in:
Blake Griffith
2017-03-02 21:16:19 -08:00
committed by Jacob Hoffman-Andrews
parent 93908a33bc
commit 12a6e49cf1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -336,8 +336,8 @@ class CertLoaderTest(unittest.TestCase):
from certbot.crypto_util import pyopenssl_load_certificate
cert, file_type = pyopenssl_load_certificate(CERT)
self.assertEqual(cert.digest('sha1'),
OpenSSL.crypto.load_certificate(file_type, CERT).digest('sha1'))
self.assertEqual(cert.digest('sha256'),
OpenSSL.crypto.load_certificate(file_type, CERT).digest('sha256'))
def test_load_invalid_cert(self):
from certbot.crypto_util import pyopenssl_load_certificate