Beispiel #1
0
 def test_prepare_private_key_orig_not_encrypted(self):
     self.assertEqual(
         cert_parser.prepare_private_key(sample_certs.X509_CERT_KEY),
         sample_certs.X509_CERT_KEY)
Beispiel #2
0
 def test_prepare_private_key_orig_not_encrypted(self):
     self.assertEqual(
         cert_parser.prepare_private_key(
             sample_certs.X509_CERT_KEY),
         sample_certs.X509_CERT_KEY)
Beispiel #3
0
 def test_prepare_private_key(self):
     self.assertEqual(
         cert_parser.prepare_private_key(
             sample_certs.X509_CERT_KEY_ENCRYPTED,
             passphrase=sample_certs.X509_CERT_KEY_PASSPHRASE),
         sample_certs.X509_CERT_KEY)
Beispiel #4
0
 def test_prepare_private_key(self):
     self.assertEqual(
         cert_parser.prepare_private_key(
             sample_certs.X509_CERT_KEY_ENCRYPTED,
             passphrase=sample_certs.X509_CERT_KEY_PASSPHRASE),
         sample_certs.X509_CERT_KEY)