macos openssl 生成rsa证书 -mark

创建私钥

openssl genrsa -out rsa_private_key.pem 1024

创建无密码私钥

openssl pkcs8 -topk8 -inform PEM –nocrypt -in rsa_private_key.pem -outform PEM 

 

生成公钥

openssl rsa -in rsa_private_key.pem -out rsa_public_key.pem -pubout 

 

posted @ 2018-04-19 14:26  老徐想减肥  阅读(287)  评论(0编辑  收藏  举报