Report this

What is the reason for this report?

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

Posted on December 29, 2020

Configuration 1 Load Balancer (Example IP : 24.24.24.24.220) 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 pgmx.mx
http-01 challenge for pgmx.mx
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: pgmx.mx
   Type:   unauthorized
   Detail: Invalid response from
   http://pgmx.mx/.well-known/acme-challenge/-usGpv0f-YzPXgn3L-osPZ2ko6bRH-EMRSgVM8KnB0I
   "<!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



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!

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.

Hi there,

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

https://www.digitalocean.com/docs/networking/load-balancers/how-to/ssl-termination/

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.