I am hosting a CloudFront distribution pointing to a backend for my service (app.example.com). I have a multi-tenant system where I also provide other users the ability to point their sites to ours (service.anotherexample.com). I would like to add multiple CNAMES to the CloudFront distribution, but due to the fact that each CNAME needs to share one SSL certificate, we are unsure on how to proceed. We have the individual certificates for all of these sites, but there does't seem to be an option to assign multiple.
Here is an example of what we want to achieve with CloudFront:
service.anotherexample.com
---> app.example.com
test.athirdexample.com
where we have the SSL certificates for anotherexample.com and athirdexample.com, but not one certificate to cover three unique domains.
Any help would be appreciated. Thanks in advance!
This requires an SSL certificate to cover every domain. Do we need to request a certificate applicable to every hostname that we intend to use?
This can be done using one certificate with multiple Subject Alternative Names (SAN).
Understood, thank you for your assistance.
There appears to be a 10 domain limit on the multiple SAN certificates that AWS provides. In the scenario that we need to deal with up to 50 domains, is there a feature for CloudFront similar to the Elastic Load Balancer where we can attach multiple certificates?