Classic Load Balancer listeners should be configured with HTTPS or TLS termination
Verifies that every Classic Load Balancer listener uses HTTPS or SSL for front-end connections, so client traffic to the load balancer is encrypted. One HTTP or TCP listener fails the load balancer. Only the front-end protocol is read; the protocol to the instances is not.
- service
- ELB
- severity
- Medium
- scope
- evaluated in every region
How to fix it
- Can break clients: A Classic Load Balancer cannot redirect HTTP to HTTPS, so clients still using a removed HTTP or TCP listener fail; move them first.
- Affects another check: A new HTTPS or SSL listener is then checked by ELB.2 and ELB.8, and one added by the Terraform or CLI route gets the default security policy, which fails ELB.8.
In the console
EC2 → Load balancers → the load balancer → Listeners → Manage listeners
- Listener protocol
- HTTPS, or SSL in place of a TCP listener
- Default SSL cert
- From ACM, a certificate for the listener's domain in this Region (ELB.2)
- Security policy
- ELBSecurityPolicy-TLS-1-2-2017-01 (ELB.8)
- Listeners
- Remove every HTTP and TCP listener once its clients have moved
With the AWS CLI
aws elb create-load-balancer-listeners --load-balancer-name <load-balancer-name> --listeners Protocol=HTTPS,LoadBalancerPort=443,InstanceProtocol=HTTPS,InstancePort=443,SSLCertificateId=<acm-certificate-arn> --region <region>With Terraform
resource "aws_elb" "this" {
listener {
lb_port = 443
lb_protocol = "https"
instance_port = 443
instance_protocol = "https"
ssl_certificate_id = var.acm_certificate_arn
}
}
See which of your accounts this check is failing on.
Book a live scan