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.
ACM facts
| Item | Detail |
|---|---|
| Scope | Regional. You cannot copy a certificate between Regions. Request or import one per Region |
| CloudFront | Certificate must be in US East (N. Virginia). A CloudFront to ALB origin connection can use a certificate from the ALB's own Region |
| Integrated services | Elastic Load Balancing, CloudFront, API Gateway, Elastic Beanstalk, App Runner, Amplify, OpenSearch custom endpoints, Network Firewall (TLS inspection), Nitro Enclaves |
| Cost | No charge for certificates used with integrated services. Exportable public certificates cost extra |
| Key types | RSA 2048, 3072, 4096 and ECDSA when used with a load balancer |
| Wildcard | One level only. *.example.com does not cover a.b.example.com or the apex example.com |
Managed renewal
| Certificate | Renewed automatically |
|---|---|
| Public cert with DNS validation, in use by an integrated service | Yes. Email-validated certs get notices instead |
Private cert from ACM RequestCertificate, then associated or exported | Yes |
Private cert from the Private CA IssueCertificate API | No |
| Imported certificate | No. You must reimport before expiry |
| Already expired | No |
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
| Item | Detail |
|---|---|
| Hierarchy | A root CA at the top, subordinate CAs below. Keep the root restricted and issue from subordinates |
| Scope | Regional. You cannot copy a CA between Regions |
| Cost | Monthly fee per CA plus a fee per certificate issued or exported. Certificates whose key you cannot access (ELB, CloudFront, API Gateway) are free |
| Customization | Certificate extensions for code signing, OCSP signing and mutual authentication |
| Revocation | Certificate revocation list and OCSP |
| Key algorithms | RSA 2048, 3072, 4096, ECDSA P-256, P-384, P-521, plus ML-DSA |
| Use via ACM | Request private certificates in ACM and attach them to integrated services |
Mutual TLS between two workloads
- Create the subordinate CA under the root.
- Each workload generates a key pair and CSR with OpenSSL.
aws acm-pca issue-certificatesigns the CSR and returns a certificate ARN.aws acm-pca get-certificateretrieves 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.
Related
Further reading
Elastic Load Balancer Security
TLS termination, SNI and SAN certificates, forward secrecy, mutual TLS and WAF on an ALB, plus isolating a compromised target.
Security Lake and OCSF Integrations
Centralize AWS, SaaS and third-party security logs in OCSF format with Amazon Security Lake and AWS AppFabric.