示例#1
0
 def test_create_key(self):
     """
     Test that x509.create_key returns a private key
     :return:
     """
     ret = x509.create_private_key(text=True, passphrase="super_secret_passphrase")
     self.assertIn("BEGIN RSA PRIVATE KEY", ret)
示例#2
0
 def test_create_key(self):
     '''
     Test that x509.create_key returns a private key
     :return:
     '''
     ret = x509.create_private_key(text=True,
                                   passphrase='super_secret_passphrase')
     self.assertIn(b'BEGIN RSA PRIVATE KEY', ret)