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

后端 未结 10 1915
-上瘾入骨i
-上瘾入骨i 2020-11-22 10:06

How can I create a PEM file from an SSL certificate?

These are the files that I have available:

  • .crt
  • server.csr
10条回答
  •  醉酒成梦
    2020-11-22 10:41

    A pem file contains the certificate and the private key. It depends on the format your certificate/key are in, but probably it's as simple as this:

    cat server.crt server.key > server.pem
    

提交回复
热议问题