开发者

How to convert .crt to .pem [duplicate]

开发者 https://www.devze.com 2023-02-04 14:07 出处:网络
This question already has answers here: How to get .pem file from .key and .crt files? 开发者_开发百科(12 answers)
This question already has answers here: How to get .pem file from .key and .crt files? 开发者_开发百科 (12 answers) Closed 3 years ago.

How can I convert .crt to .pem?


You can do this conversion with the OpenSSL library. Windows binaries can be found here.

Once you have the library installed, the command you need to issue is:

openssl x509 -in mycert.crt -out mycert.pem -outform PEM


I found the OpenSSL answer given above didn't work for me, but the following did, working with a CRT file sourced from windows.

openssl x509 -inform DER -in yourdownloaded.crt -out outcert.pem -text
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号