Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 .crt 转换为 .pem?
您可以使用OpenSSL 库进行此转换。可以在此处找到 Windows 二进制文件。
安装库后,您需要发出的命令是:
openssl x509 -in mycert.crt -out mycert.pem -outform PEM
我发现上面给出的 OpenSSL 答案对我不起作用,但下面的答案确实适用于来自 windows 的 CRT 文件。
openssl x509 -inform DER -in yourdownloaded.crt -out outcert.pem -text