I am having a problem finding a command that would generate a public / private key pair using OpenSSL. Can anyone show me some example code of this in action.
thank
Using pyOpenSSL bindings :
OpenSSL.crypto.PKey().generate_key(type, bits) Create a public / private key pair of type type (one of TYPE_RSA and TYPE_DSA ) with size bits .
OpenSSL.crypto.PKey().generate_key(type, bits)
Create a public / private key pair of type type (one of TYPE_RSA and TYPE_DSA ) with size bits .
type
TYPE_RSA
TYPE_DSA
bits
Documents