OpenSSL, Converting CRT to PEM

时光怂恿深爱的人放手 提交于 2019-12-24 11:27:36

问题


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

After using that command, I get

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.

Thank you so much for your help,

Brian


回答1:


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



来源:https://stackoverflow.com/questions/24391221/openssl-converting-crt-to-pem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!