Which keys to use in Load balancer, when server handling multiple domains?


#1

Hi guys,

I have we have our applications configured as below

I have created LetsEncrypt certificate for each domain/subdomain in each server and configured it.
The problem is we AWS Load balancer accepts only one SSL certificate. So how to configure Letsencrypt for this kind of configuration ?


#2

You’ll need a single cert with all the (sub)domains instead.
Having one server redirect/proxy /.well-known/acme-challenge/ to the other may make completing the http-01 challenge easier if you’re using that one.


#3

So we don’t need to create certs for each domain in each server right ?


#4

No, you can have up to 100 names in a cert, then copy that to as many servers as you need.


#5

If I’m not wrong, create one cert for all domains and have to put it in Load balancer. right ?

If that’s the case, don’t I need to configure in each Nginx Server blocks like mentioned here ?


#6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.