X-Git-Url: https://v.licheni.net/stack/cam.git/blobdiff_plain/537b055e1716170ab5b97df69aba6269a285cce2..da1f62a607b9f8b1055c686d3b5e4d3811243d46:/cam/tests/test_ca.py diff --git a/cam/tests/test_ca.py b/cam/tests/test_ca.py index 748326f..fdcd238 100644 --- a/cam/tests/test_ca.py +++ b/cam/tests/test_ca.py @@ -53,15 +53,15 @@ class CATest(unittest.TestCase): self.assertTrue(os.path.exists(cert.public_key_file)) self.assertTrue(os.path.exists(cert.private_key_file)) - def test_create_cert_with_sha2_signature(self): - self.ca.config['signature_algorithm'] = 'sha256' + def test_create_cert_with_digest_override(self): + self.ca.config['signature_algorithm'] = 'md5' self.ca.create() cert = CertStub('test', 'www.test.com', self.tmpdir) self.ca.generate(cert) self.assertTrue(os.path.exists(cert.public_key_file)) self.assertTrue(os.path.exists(cert.private_key_file)) self.assertTrue( - 'Signature Algorithm: sha256WithRSAEncryption' in subprocess.check_output( + 'Signature Algorithm: md5WithRSAEncryption' in subprocess.check_output( ['openssl', 'x509', '-text', '-noout', '-in', cert.public_key_file])) def test_revoke(self):