KEY私鑰格式轉換——已有的RSA公私鑰轉換成PKCS8格式

Windows用戶
1.安裝OpenSSL,如:http://www.chinassl.net/upload/software/win32openssl-0_9_8.rar
2.找到剛纔安裝的OpenSSL,打開其下的bin文件夾,雙擊openSSL.exe文件,執行程序
3.將已有的RSA私鑰放到bin文件夾
4.在打開的openSSL.exe,將RSA私鑰轉換成PKCS8格式,並回車當前界面中會直接顯示出生成結果,這個結果就是PKCS8格式的私鑰
命令:pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -outform PEM -nocryptide

相關文章
相關標籤/搜索