Skip to content

Why does the HTTPS connection between my CloudFront distribution and load balancer fail?

2 minute read
0

I configured HTTPS and HTTP listeners on my Classic Load Balancer or Application Load Balancer as the origin for my Amazon CloudFront distribution. However, the HTTPS communication between CloudFront and my load balancer fails.

Resolution

Issues with the associated SSL/TLS certificate, security groups, or network access control list (network ACL) cause HTTPS communication failures. Make sure that your distribution and load balancer meet the following security requirements:

Note: You can use Server Name Indication (SNI) to add multiple SSL/TLS certificates with smart selection to your Application Load Balancer. If your distribution caches based on the host header, then configure an SSL/TLS certificate with the same name on the Application Load Balancer. Otherwise, the Application Load Balancer uses the default certificate, which might not match the SNI associated with the ClientHello message from CloudFront.

Related information

Require HTTPS for communication between CloudFront and your custom origin

AWS OFFICIALUpdated 6 months ago
2 Comments

Please, document how to do this using cloudformation template

The network ACLs associated with your load balancer's Amazon Virtual Private Cloud (Amazon VPC) must allow traffic from CloudFront on HTTPS ports (typically port 443).

replied 2 years ago

Thank you for your comment. We'll review and update the Knowledge Center article as needed.

AWS
MODERATOR
replied 2 years ago