1 #certificate generation functions
3 from M2Crypto import X509
4 from M2Crypto import EVP
6 def createKeyPair(type, bits):
8 Create a public/private key pair.
10 Arguments: type - Key type, must be one of TYPE_RSA and TYPE_DSA
11 bits - Number of bits to use in the key
12 Returns: The public/private key pair in a PKey object