OpenSSL,将CRT转换为PEM [英] OpenSSL, Converting CRT to PEM
问题描述
我一直在尝试使用openssl将.crt证书转换为.pem
I've been trying to use openssl to convert a .crt certificate to a .pem
openssl.exe x509 -in server.crt -out openssl.der -outform DER
使用该命令后,我得到
无法加载证书
1760:错误:0906D06C:PEM例程:PEM_read_bio:无起始行:.\ crypto \ pem \ pem_lib.c:703:正在期待:受信任的证书
unable to load certificate
1760:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
I've tried following https://support.ssl.com/Knowledgebase/Article/View/19/0/der-vs-crt-vs-cer-vs-pem-certificates-and-how-to-convert-them but I'm at a loss and nothing on there is working for me.
非常感谢您的帮助,
布莱恩
推荐答案
以下文章可能对其他人有帮助: 如何从中获取.pem文件.密钥和.crt文件?
may the following post well be helpful for others: How to get .pem file from .key and .crt files?
openssl x509 -inform DER -outform PEM -in server.crt -out server.crt.pem
openssl x509 -inform DER -outform PEM -in server.crt -out server.crt.pem
这篇关于OpenSSL,将CRT转换为PEM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!