220b255ede76dd1acb189c86a5149400ad4ff408
[sfa.git] / util / sec / certgen_m2crypto.py
1 #certificate generation functions
2
3 from M2Crypto import X509
4 from M2Crypto import EVP
5
6 def createKeyPair(type, bits):
7     """
8     Create a public/private key pair.
9
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
13     """
14     
15     
16     
17     
18
19
20