Reputation: 2176
Trying to host multiple applications on AWS Lightsail with https
being allowable on all of them, but running into a problem. It appears as though the Lightsail load balancers only allow a single certificate to be active at one time. These sites are low-traffic so I would like to only have a single load balancer or ec2 instance for multiple domains that can support https
on all of them. Does AWS provide a way to do this that integrates with Lighsail or what is the recommended approach?
Upvotes: 9
Views: 7112
Reputation: 178956
You are correct that LightSail balancers only support 1 certificate, but that single certificate can support up to 10 domain names.
One of the domains is the "main" one and the other (up to) 9 are "alternate" domains and subdomains, but operationally it doesn't make any difference which one is the "main" one and which ones are alternates.
Certificates are not editable, so if you already created one, you'll need to create a new one with all the domains, and attach it to the balancer.
Upvotes: 6