如何使用带有.cer文件和PKCS#8加密私钥的openSSL创建pfx
尝试使用以下命令
openssl pkcs12 -export -in cert.cer -inkey cert.key -out cert.pfx
我看到unable to load private key异常。openssl需要私钥。
在我的例子中,私钥是pkcs#8加密的。我有加密私钥的密码。但是openssl不会提示输入密码。
我在使用下面的命令将私钥转换为privatekey.pem时确实取得了进展。我确实找到了here
openssl pkcs8 -inform DER -in file.key -passin pass:xxxxxxxx >private_key.pem
转载请注明出处:http://www.cntdm.com/article/20230528/1627350.html