Certopolis

AWS Certified CloudOps Engineer – Associate

ACM certificate renewal: managed vs imported certificates

The AWS Certificate Manager User Guide says ACM provides managed renewal for certificates that Amazon issued, as long as the certificate is associated with another AWS service or has been exported. With DNS validation the renewal is automatic while the CNAME record stays in place. Imported certificates are never renewed by ACM; you reimport a new one.

Which certificates does ACM renew?

A certificate is eligible for automatic renewal if it is associated with another AWS service, such as Elastic Load Balancing or CloudFront, or if it has been exported since it was issued or last renewed.

It is not eligible if it was imported, if it has already expired, or if it is a private certificate issued by calling the AWS Private CA IssueCertificate API.

For eligible certificates, ACM renews automatically when DNS validation is used. Otherwise it sends email notices as expiration approaches. A renewed certificate keeps the same ARN.

ACM certificates are regional resources. Certificates for the same domain name in several Regions are renewed independently.

How does DNS validation work?

ACM gives you one or more CNAME records to add to your DNS database. They prove that you control the domain. The records need to be added only once, and ACM keeps renewing the certificate as long as it is in use and the CNAME record remains.

While the record is in place, you can request more ACM certificates for the same fully qualified domain name without validating again. The CNAME validation token works in any AWS Region, so you can create the same certificate in several Regions.

A wildcard name such as *.example.com gets the same record as its base domain example.com. Automatic renewal stops if you remove the certificate from the service it is associated with or delete the CNAME record. If you cannot edit the domain's DNS database, you must use email validation.

How do you renew an imported certificate?

ACM does not provide managed renewal for imported certificates. You are responsible for watching the expiration date and can use EventBridge to send notices as it approaches.

To renew, obtain a new certificate from your issuer and reimport it into ACM under the existing certificate ARN. Reimporting before expiry preserves the certificate's associations with AWS services and its ARN. The key type and size cannot change, and you can add or remove domain names but not remove all of them.

Imported certificates are regional too. To use one with load balancers in different Regions, import it into each Region. To use it with CloudFront, import it into US East (N. Virginia).

Where the exam catches people

  • Expecting ACM to renew an imported certificate: managed renewal does not cover imported certificates.
  • Expecting ACM to renew a certificate that is not in use: it must be associated with an AWS service or have been exported.
  • Importing a renewed certificate as a new one: that gives a new ARN. Reimporting into the existing ARN keeps the service associations.
  • Deleting the validation CNAME record after the certificate is issued: automatic renewal needs the record to stay.
  • Believing one renewal covers every Region: certificates are regional and each is renewed independently.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A company serves app.example.com from an Application Load Balancer in eu-west-1 with a DNS-validated public ACM certificate. The SysOps administrator must put a second Application Load Balancer for the same name into service in ap-southeast-2 this week. Record changes at the company's external DNS provider take three weeks. The new certificate must keep renewing with no human action. Which solution will meet these requirements?

    Right. In the game that’s Renown for your Security and Compliance building.

    Not that one: D is right. In the game your Security and Compliance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    And because it is DNS-validated and in use on the new load balancer, ACM renews it automatically for as long as the record stays in place.

    Written from docs.aws.amazon.com/acm/latest/userguide/dns-validation.html

  2. A SysOps administrator is reviewing the ACM certificates in one account in eu-west-1 before a holiday freeze, when nobody will touch certificates. Each certificate below is a public certificate that ACM issued with DNS validation unless stated otherwise, and every validation CNAME record is still published in the hosted zone. Which of the following certificates will ACM renew automatically?

    Right. In the game that’s Renown for your Security and Compliance building.

    Not that one: A is right. In the game your Security and Compliance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The exportable certificate on the EC2 instances meets both, so ACM renews it even though no AWS service holds it; the team then exports and installs the renewed copy itself. The postponed certificate was never used, the imported one was never ACM's to renew, and the expired one is past the point where renewal can happen.

    Written from docs.aws.amazon.com/acm/latest/userguide/managed-renewal.html

  3. An Application Load Balancer serves pay.example.com with a certificate that a commercial certificate authority issued and the SysOps administrator imported into ACM. A CloudWatch alarm on the certificate's DaysToExpiry metric already notifies the team 30 days before expiry. The load balancer must never serve an expired certificate. Which solution will meet these requirements with the LEAST operational overhead?

    Right. In the game that’s Renown for your Security and Compliance building.

    Not that one: B is right. In the game your Security and Compliance building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    And reimporting that certificate into its existing ARN keeps the certificate's service associations, so the load balancer starts serving the new certificate with no listener change, while the DaysToExpiry alarm, which is keyed on that ARN, goes on watching the right certificate for the next cycle.

    Written from docs.aws.amazon.com/acm/latest/userguide/managed-renewal.html

Ask for something