ACM certificates and HTTPS
HTTP and HTTPS are different from DNS
HTTP carries application requests and responses. A GET asks for a resource; status 200 indicates success in this example, 403 means access forbidden and 502 can indicate an upstream failure. HTTPS uses TLS to protect HTTP in transit and authenticate the endpoint under the client’s trust rules. DNS resolution alone provides neither of these guarantees. A certificate binds a public key to names under an issuer’s validation process; it does not prove the application is safe.
GET /covers/book-v2.png HTTP/1.1Host: shop.example.com
HTTP/1.1 200 OKACM and domain validation
AWS Certificate Manager (ACM) helps provision and manage certificates for integrated services. For a standard CloudFront distribution using a custom viewer domain and an ACM certificate in the commercial partition, request or import the certificate in us-east-1, even if the S3 origin is elsewhere. The certificate must cover the viewer hostname. Public ACM certificates require domain control validation; DNS validation uses a supplied CNAME. Preserve the validation record and meet renewal eligibility conditions for managed renewal. Other validation methods have different requirements. This record is illustrative, not a real validation token.
_demo.shop.example.com. CNAME _demo.validation.example.net.Two independent transport connections
With a CDN, TLS from viewer to edge is separate from the connection between edge and origin. Set the viewer protocol policy to HTTPS only or redirect HTTP to HTTPS as appropriate. For a regular S3 origin with OAC, choosing always-sign requests provides HTTPS on the origin connection. For custom origins, configure HTTPS and certificate trust separately. A valid viewer certificate does not guarantee a valid origin certificate. Do not disable validation to repair errors. TLS termination means one TLS connection ends at a component, which may establish another protected connection.
Viewer == TLS connection 1 ==> CloudFrontCloudFront == TLS connection 2 ==> OriginDiagnose by layer
First confirm the intended DNS answer and whether it is stale. Next check that the viewer hostname is covered by the certificate, the trust chain is valid and the certificate is within its validity interval. Then inspect HTTP status and whether it came from the edge or origin. A hostname mismatch calls for correcting the certificate or intended name, not bypassing TLS verification. A 403 after successful TLS can be an authorization problem; investigate OAC and bucket policy without making the bucket public. A successful response for one file does not establish access to every file.
DNS OK -> TLS hostname mismatch -> stop before HTTPDNS OK -> TLS OK -> HTTP 403 -> inspect authorizationFirst safe architecture review
Plan a standard CloudFront distribution with a private regular S3 origin and OAC, a custom viewer domain and a matching ACM certificate in us-east-1. For the fictional domain, write a DNS alias plan and two transport paths; identify expected direct-origin denial and public viewer success. For a real deployment, separately authorize domain ownership, DNS edits, certificate issuance and resources; review charges for domain, hosted zone, requests, data delivery and retained resources. Plan rollback of DNS, wait for distribution changes, and remove only lab-owned resources after checking dependencies and renewal needs. All work here is paper or offline; no ownership validation or cloud calls occur.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
ACM certificates and HTTPS — knowledge check
Apply the lesson concepts to the fictional bookstore.
Where is the ACM viewer certificate for a standard CloudFront custom domain requested in the commercial partition?
What does DNS validation for a public ACM certificate demonstrate?
Viewer TLS succeeds. What does that establish about origin TLS?
The hostname does not match the viewer certificate. What is the appropriate fix?
DNS and TLS succeed but a request returns HTTP 403. Which check is relevant for a private S3 origin?