其他分享
首页 > 其他分享> > 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 RSA key

 

openssl genrsa -out privatekey.pem 2048

 

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

 

 

 

 

 

 

Generating a private EC key

 

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

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

 

标签:Generating,openssl,private,pem,key,out
来源: https://www.cnblogs.com/xman888/p/15458057.html