Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ssl 如何将证书与密钥结合并输出pem文件?_Ssl_Ssl Certificate_Webrtc_X509certificate_Kurento - Fatal编程技术网

Ssl 如何将证书与密钥结合并输出pem文件?

Ssl 如何将证书与密钥结合并输出pem文件?,ssl,ssl-certificate,webrtc,x509certificate,kurento,Ssl,Ssl Certificate,Webrtc,X509certificate,Kurento,我已经配置了kurento media server,但对于SSL部分,它需要pem格式的cert+密钥和密码。问题是我有 1. ca_bundle.crt 2. certificate.crt 3. private_key.key 现在,我如何将它们转换为有效的cert+key.pem,以便kurento media server可以访问它 我使用openssl工具将certificate.crt仅转换为certificate.pemopensslx509-in-cert.crt-ou

我已经配置了kurento media server,但对于SSL部分,它需要pem格式的cert+密钥和密码。问题是我有

 1. ca_bundle.crt
 2. certificate.crt
 3. private_key.key
现在,我如何将它们转换为有效的cert+key.pem,以便kurento media server可以访问它

我使用openssl工具将certificate.crt仅转换为certificate.pem
opensslx509-in-cert.crt-out-cert.pem

但它仍然不起作用。我已经按照kurento指南生成了一个自签名证书,它可以工作,但确实没有绿色印章,所以我在网上买了一个证书,但似乎无法让它工作。以下是kurento的自签名证书指南

任何帮助都将不胜感激。

试试这个

openssl x509 -inform DER -in cert.crt -out cert.pem -text
试试这个

openssl x509 -inform DER -in cert.crt -out cert.pem -text