Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 302 Bytes

rsa-key生成方法.md

File metadata and controls

18 lines (14 loc) · 302 Bytes

RSA密钥生成命令

###生成RSA私钥

openssl genrsa -out prikey.pem 1024

###生成RSA公钥

openssl rsa -in privkey.pem -pubout -out pubkey.pem

###将RSA私钥转换成PKCS8格式

openssl pkcs8 -topk8 -inform PEM -in prikey.pem -outform PEM -nocrypt