Created
July 20, 2016 09:48
-
-
Save yangl/4e53f6ea2e30e2fbd79aab543feb4dc7 to your computer and use it in GitHub Desktop.
RSA密钥生成方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
生成 rsa 私钥 | |
openssl genrsa -out rsaprivatekey.pem 1024 | |
生成对应的公钥 | |
openssl rsa -in rsaprivatekey.pem -pubout -out rsapublickey.pem | |
将 RSA 私钥转换成 PKCS8 格式 | |
openssl pkcs8 -topk8 -inform PEM -in rsaprivatekey.pem -outform PEM -nocrypt -out rsaprivatepkcs8.pem | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment