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

Configuration 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

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

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

Regards, Bobby