How to convert .crt to .pem [duplicate]

2019-01-04 04:55发布

Possible Duplicate:
How to get .pem file from .key and .crt files?

How can I convert .crt to .pem?

2条回答
走好不送
2楼-- · 2019-01-04 05:51

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
查看更多
欢心
3楼-- · 2019-01-04 05:53

You can do this conversion with the OpenSSL library

http://www.openssl.org/

Windows binaries can be found here:

http://www.slproweb.com/products/Win32OpenSSL.html

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

openssl x509 -in mycert.crt -out mycert.pem -outform PEM
查看更多
登录 后发表回答