Skip to Content
Asterrr's Handbook
3 · Infrastructure security

ACM for TLS and mutual TLS

Public and private TLS certificates, managed renewal rules, CloudFront Region requirement, CA hierarchy and mutual TLS.

The decision: should this endpoint use a public ACM certificate or a private CA, and who renews it?

Legacy

This page covers using certificates for TLS and mutual TLS. For issuance, renewal and validity see ACM and Private CA.

AWS Certificate Manager (ACM) issues and renews TLS certificates and deploys them to integrated AWS services. AWS Private CA runs your own private certificate authority hierarchy for internal TLS, code signing and device or workload identity.

us-east-1Application Regionviewer HTTPSACM certificateCloudFrontACM certificateALBAPI Gateway
ACM certificates are regional. CloudFront only accepts a certificate that lives in US East (N. Virginia).

ACM facts

ItemDetail
ScopeRegional. You cannot copy a certificate between Regions. Request or import one per Region
CloudFrontCertificate must be in US East (N. Virginia). A CloudFront to ALB origin connection can use a certificate from the ALB's own Region
Integrated servicesElastic Load Balancing, CloudFront, API Gateway, Elastic Beanstalk, App Runner, Amplify, OpenSearch custom endpoints, Network Firewall (TLS inspection), Nitro Enclaves
CostNo charge for certificates used with integrated services. Exportable public certificates cost extra
Key typesRSA 2048, 3072, 4096 and ECDSA when used with a load balancer
WildcardOne level only. *.example.com does not cover a.b.example.com or the apex example.com

Managed renewal

CertificateRenewed automatically
Public cert with DNS validation, in use by an integrated serviceYes. Email-validated certs get notices instead
Private cert from ACM RequestCertificate, then associated or exportedYes
Private cert from the Private CA IssueCertificate APINo
Imported certificateNo. You must reimport before expiry
Already expiredNo

A renewed certificate keeps the same ARN.

Exporting

Legacy

Older material says ACM certificates cannot be exported. That is no longer true. ACM now offers exportable public certificates (extra charge, DNS validation, 198-day validity, renewed 45 days before expiry) and exports of private certificates from AWS Private CA. Certificates attached to integrated services still keep their private key inside AWS.

AWS Private CA

ItemDetail
HierarchyA root CA at the top, subordinate CAs below. Keep the root restricted and issue from subordinates
ScopeRegional. You cannot copy a CA between Regions
CostMonthly fee per CA plus a fee per certificate issued or exported. Certificates whose key you cannot access (ELB, CloudFront, API Gateway) are free
CustomizationCertificate extensions for code signing, OCSP signing and mutual authentication
RevocationCertificate revocation list and OCSP
Key algorithmsRSA 2048, 3072, 4096, ECDSA P-256, P-384, P-521, plus ML-DSA
Use via ACMRequest private certificates in ACM and attach them to integrated services

Mutual TLS between two workloads

signsissue certissue certmutual TLSRoot CASubordinate CAClient containerServer container
Both sides present a certificate from the same private hierarchy and verify the other side.
  1. Create the subordinate CA under the root.
  2. Each workload generates a key pair and CSR with OpenSSL.
  3. aws acm-pca issue-certificate signs the CSR and returns a certificate ARN.
  4. aws acm-pca get-certificate retrieves the certificate by that ARN.

One-way TLS authenticates only the server. Mutual TLS authenticates both, which suits IoT and business-to-business APIs.

Exam signal

"HTTPS from viewers to CloudFront using a free managed certificate" means request it in us-east-1. "Internal services must authenticate each other with certificates" means Private CA and mutual TLS.

Exam trap

An imported certificate does not auto-renew, and email validation does not auto-renew either. Expect a question about expired certificates that traces back to one of these.

Further reading

On this page