コード例 #1
0
 def test_read_private_key_pem(self):
     self.assertRaises(exceptions.NeedsPassphrase,
                       cert_parser._read_private_key,
                       sample_certs.X509_CERT_KEY_ENCRYPTED)
     cert_parser._read_private_key(
         sample_certs.X509_CERT_KEY_ENCRYPTED,
         passphrase=sample_certs.X509_CERT_KEY_PASSPHRASE)
コード例 #2
0
 def test_read_private_key_pem(self):
     self.assertRaises(exceptions.NeedsPassphrase,
                       cert_parser._read_private_key,
                       sample_certs.X509_CERT_KEY_ENCRYPTED)
     cert_parser._read_private_key(
         sample_certs.X509_CERT_KEY_ENCRYPTED,
         passphrase=sample_certs.X509_CERT_KEY_PASSPHRASE)
コード例 #3
0
 def test_read_private_key_pkcs8(self):
     self.assertRaises(exceptions.NeedsPassphrase,
                       cert_parser._read_private_key,
                       sample_certs.ENCRYPTED_PKCS8_CRT_KEY)
     cert_parser._read_private_key(
         sample_certs.ENCRYPTED_PKCS8_CRT_KEY,
         passphrase=sample_certs.ENCRYPTED_PKCS8_CRT_KEY_PASSPHRASE)
コード例 #4
0
 def test_read_private_key_pkcs8(self):
     self.assertRaises(exceptions.NeedsPassphrase,
                       cert_parser._read_private_key,
                       sample_certs.ENCRYPTED_PKCS8_CRT_KEY)
     cert_parser._read_private_key(
         sample_certs.ENCRYPTED_PKCS8_CRT_KEY,
         passphrase=sample_certs.ENCRYPTED_PKCS8_CRT_KEY_PASSPHRASE)