Server Name Indicator (SNI) on ALB



You can verify that the name on the cert is the same as the site name, and the only cert served. Change hostname and you'll get a different cert. Hostnames other than www will use the wildcard cert, so you'll see an * as the hostname.

This site is hosted behind an Application Load Balancer and is using Server Name Indication (SNI).

This allows it to serve multiple, independent, TLS certificates based on the hostname indicated by clients.

It's a few simple web pages hosted on servers in EC2 running Nginx behind and ALB. The real fun is nothing magical, just changing which certificate is provided based on what you try to connect to.

ALB uses Smart Certificate Selection to choose the best certificate whenever there are multiple matches.

You can use SNI on your ALB today, just add more certificates in the console!


SNI INFO: h062j61v.exampleloadbalancer.info

SerialNumber:0b:8c:8a:a1:bb:fb:6c:1b:4d:28:6e:5c:4f:7c:fb:a7 Subject:CN=*exampleloadbalancer.info

via GIPHY