Home > OS >  How can I get the certificate file?
How can I get the certificate file?

Time:09-21

In Certificate Manager I just issued my domain for SSL certificate, I need the files of the certificate like private.key & certificate.

I do not see any place in AWS Certificate Manager console that I can download this certificate to use it in this file:

files:      
  /etc/pki/tls/certs/server.crt:
    mode: "000400"
    owner: root
    group: root
    content: |
      -----BEGIN CERTIFICATE-----
      certificate goes here
      -----END CERTIFICATE-----

      
  /etc/pki/tls/certs/server.key:
    mode: "000400"
    owner: root
    group: root
    content: |
      -----BEGIN RSA PRIVATE KEY-----
      private key goes here
      -----END RSA PRIVATE KEY-----

CodePudding user response:

Sadly you can't export a private SSL cert key from AWS ACM. From docs:

You cannot install your ACM certificate or your private ACM Private CA certificate directly on your AWS based website or application.

Instead, you have to deploy ACM cert on resources that work with the ACM, such as Load balancer, CloudFront distro, AWS Nitro Enclaves, etc.

But if you want to have your own SSL cert, then you can create one for free using https://letsencrypt.org/, instead of using ACM.

  • Related