How can I export the private key embedded in an .cer file and convert it to .pem using openssl.
如何导出嵌入在.cer文件中的私钥并使用openssl将其转换为.pem。
Update:
If I download a .cer file from Apple and import it into KeyChain, I can export the private key as a .p12 file. How can I do this using openssl?
如果我从Apple下载.cer文件并将其导入KeyChain,我可以将私钥导出为.p12文件。我怎么能用openssl做到这一点?
1 个解决方案
#1
Unfortunately - the certificate does not contain the private key (it does, however contain the public key). You'll need the private key source (a .p12 usually), to extract the private key.
不幸的是 - 证书不包含私钥(但它包含公钥)。您需要私钥源(通常是.p12)来提取私钥。
Hope this helps.
希望这可以帮助。
#1
Unfortunately - the certificate does not contain the private key (it does, however contain the public key). You'll need the private key source (a .p12 usually), to extract the private key.
不幸的是 - 证书不包含私钥(但它包含公钥)。您需要私钥源(通常是.p12)来提取私钥。
Hope this helps.
希望这可以帮助。