I’m pretty newb at certificates, but here is what I have and also what I’m trying to do.
I have domain1.com running Wordpress and domain2.com running Nextcloud. I want both services to work over 80 which has the potential to redirect to port 443 for https connections. Since these services are running on separate servers and the same ports, I have HAProxy set up in front of them as a reverse proxy, and it is currently forwarding http traffic to these sites by ACLs. Looking at some sites, I THINK I know what I’m doing in terms of setting up HAProxy, except how to deal with certs for this whole setup. domain1 and domain2 have their own unique certificate. Since I am just forwarding this traffic to whichever server is specified, how do I give HAProxy the proper certificate for the site? Do I have to copy over the certificate from each domain to HAProxy to use? If so, what file would I use?\
The server is Ubuntu Server 16.04, and I have Wordpress, Nextcloud and HAProxy running in their own LXC containers