简体   繁体   English

如何从.crt文件转换.pem格式的证书?

[英]How to convert certificate in .pem format from .crt files..?

I have 4ec7049585ebc7.crt and gd_bundle.crt files. 我有4ec7049585ebc7.crt和gd_bundle.crt文件。 I want to convert it into pem format. 我想将其转换为pem格式。 I need two files one certificate and key in pem format. 我需要两个文件,一个证书和pem格式的密钥。 what is the openssl command for it.? 它的openssl命令是什么?

Check out Paul Heinlein's OpenSSL Command-Line HOWTO . 查看Paul Heinlein的OpenSSL命令行HOWTO Its got lots of recipes. 它有很多食谱。

Do you know what format the files are currently in? 您知道文件当前使用的格式吗? They are probably already in PEM format. 它们可能已经是PEM格式。 If not, you can simply try -inform ASN1 , -inform PEM , etc until you find something that does not error. 如果没有,您可以简单地尝试-inform ASN1-inform PEM等,直到找到没有错误的东西。

More than likely, you are going to have to breakout gd_bundle.crt with a script because its going to be full of PEM encoded certificates concatenated together. 您很有可能必须使用脚本来突破gd_bundle.crt ,因为该脚本将充满连接在一起的PEM编码证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM