I have a .p12
file, I can also transfer it to a .pem
file, but how to transfer it as a .key
file?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
openssl pkcs12 -in out.p12 -nodes -out private.key -nocerts
openssl will ask you for a password, then store the unencrypted private key into the file private.key
Documentation: https://www.openssl.org/docs/man1.1.0/apps/pkcs12.html