Can a CloudFront origin certificate cause 502?
Yes. CloudFront can return 502 when the origin certificate or TLS negotiation does not match the configured origin connection.
AWS CloudFront · HTTP 502
Trace CloudFront 502 to an origin TLS mismatch, invalid HTTP response, or unreachable origin. Check distribution origin settings and origin logs.
Origin / TLS Configuration
Paste a captured HTTP response or enter a status and headers. Only the status and response headers are sent; common credential headers are filtered first.
Diagnostic report
Error code / name
Fault domain
Origin / TLS ConfigurationCloudFront could not establish a valid origin exchange. A certificate hostname mismatch, unsupported TLS setup, premature close, or malformed origin response can produce a 502.
CloudFront could not establish a valid origin exchange. A certificate hostname mismatch, unsupported TLS setup, premature close, or malformed origin response can produce a 502.
Client -> CloudFront POP -> origin TLS/HTTP validation -> certificate or response mismatch -> Xopenssl s_client -connect ORIGIN_HOST:443 -servername ORIGIN_HOST -verify_return_error -showcerts </dev/nullcustom_origin_config {
origin_protocol_policy = "https-only"
origin_ssl_protocols = ["TLSv1.2"]
https_port = 443
}SteadyNode's TLS Chain Debugger validates the public certificate and its regional HTTP checks detect 502 responses, helping isolate origin TLS regressions from edge faults.
No credit card required.
Start for freeYes. CloudFront can return 502 when the origin certificate or TLS negotiation does not match the configured origin connection.
It is a request identifier that helps correlate a viewer response with CloudFront and origin-side diagnostics.