2.2.2 Certificate Management

Certificate Management

AWS Certificate Manager (ACM)

FeatureMô tả
Public certificatesFree SSL/TLS certificates cho AWS services
Private certificatesACM Private CA ($400/month)
Auto-renewalTự động renew trước khi expire
ValidationDNS validation (recommended) hoặc Email validation

Supported Services

ServiceACM Support
CloudFront✅ (us-east-1 only)
ALB / NLB
API Gateway✅ (custom domain)
Elastic Beanstalk✅ (via ALB)
EC2❌ (dùng self-managed)

DNS Validation vs Email Validation

DNS ValidationEmail Validation
MethodAdd CNAME record to DNSRespond to email
Auto-renewal❌ (manual)
Recommended
Works withRoute 53, any DNSDomain owner email

Custom Domain cho API Gateway

1. Request certificate trong ACM (same region hoặc us-east-1 cho edge)
2. Create custom domain name trong API Gateway
3. Map API stage to custom domain
4. Create Route 53 alias record → API Gateway domain

Exam Tip: ACM public certificates = free. DNS validation = auto-renewal. CloudFront certificates phải ở us-east-1. EC2 không dùng ACM trực tiếp.