I am having problem finding a command that would generate a public and private key pair using OpenSSL. Could someone show me some example code of this in action.
Thank you
Using the pyOpenSSL bindings:
OpenSSL.crypto.PKey().generate_key(type, bits)
Generate a public/private key pair of the type
type
(one ofTYPE_RSA
andTYPE_DSA
) with the sizebits
.