+ 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: md5WithRSAEncryption' in subprocess.check_output(
+ ['openssl', 'x509', '-text', '-noout', '-in', cert.public_key_file]))
+