openssl - generate private key and extract the public key from it

Generating a private RSA key

 

openssl genrsa -out privatekey.pem 2048

 

openssl rsa -in privatekey.pem -outform PEM -pubout -out publickey.pem

 

 

openssl - generate private key and extract the public key from it

 

 

openssl - generate private key and extract the public key from it

 

 

Generating a private EC key

 

openssl ecparam -name prime256v1 -genkey -noout -out key.pem

openssl ec -in key.pem -pubout -out public.pem

openssl - generate private key and extract the public key from it

 

上一篇:openssl源码介绍


下一篇:openssl数字签名