How to do a SSL certification for Load balancer and droplets On Centos 8

Posted December 29, 2020 298 views
Load BalancingLet's EncryptCentOS 8

1 Load Balancer (Example IP :
2 Droplets
On each droplet there is Node and Laravel apps are working with server blocking
And i have pointed the Domain and Subdomain to the load balancer
1 PGMX.MX (To the Load Balancer) For Laravel app On default port 80
2 VE.PGMX.MX (To the Load Balancer) For Node app

So this both domain and subdomains are pointing to the load balancer only
and from droplet when i am trying to do a SSL Certification from any droplet using Letsencrypt

It says

Challenge failed for domain
http-01 challenge for
Cleaning up challenges
Some challenges have failed.

 - The following errors were reported by the server:

   Type:   unauthorized
   Detail: Invalid response from
   "<!DOCTYPE html>\n<html lang=\"en\">\n
   <head>\n        <meta charset=\"utf-8\">\n        <meta
   name=\"viewport\" content=\"width=device-w"

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.

So how can i do the SSL certification of Domain and Subdomain

I was using this guide
How to do SSL On Centos Letsencrypt

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there,

For the DigitalOcean managed Loadbalancers, I would recommend following the steps here on how to an SSL Certificate for your domain name: