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

后端 未结 10 2005
-上瘾入骨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:34

    Trying to upload a GoDaddy certificate to AWS I failed several times, but in the end it was pretty simple. No need to convert anything to .pem. You just have to be sure to include the GoDaddy bundle certificate in the chain parameter, e.g.

    aws iam upload-server-certificate
        --server-certificate-name mycert
        --certificate-body file://try2/40271b1b25236fd1.crt
        --private-key file://server.key
        --path /cloudfront/production/
        --certificate-chain file://try2/gdig2_bundle.crt
    

    And to delete your previous failed upload you can do

    aws iam delete-server-certificate --server-certificate-name mypreviouscert
    

提交回复
热议问题