def createKeyPair(type, bits):
    pkey = crypto.PKey()
    pkey.generate_key(type, bits)
    return pkey
Create a public/private key pair.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pyopenssl/examples/certgen.py/createKeyPair