将.pem转换为.crt和.key [英] Convert .pem to .crt and .key
本文介绍了将.pem转换为.crt和.key的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以告诉我正确的方式/命令来提取/转换证书 .crt
和私钥 .key
文件从 .pem
文件?
Can anyone tell me the correct way/command to extract/convert the certificate .crt
and private key .key
files from a .pem
file? I just read they are interchangable, but not how.
推荐答案
我可以使用以下命令将pem转换为crt:
I was able to convert pem to crt using this:
openssl x509 -outform der -in your-cert.pem -out your-cert.crt
这篇关于将.pem转换为.crt和.key的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文