Question

Failed authorization procedure while running certbot

Hello,

When I run this command: sudo certbot --apache -d lazsoc.ca -d www.lazsoc.ca

I receive this error:

Failed authorization procedure. lazsoc.ca (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://lazsoc.ca/.well-known/acme-challenge/dKGLJWuycibpj9oI5zkr7oOUXOMpV0cS9QIpNjThQIY [45.55.223.36]: "<html>\r\n<head><title>500 Internal Server Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>500 Internal Server Error</h1", www.lazsoc.ca (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from https://www.lazsoc.ca/.well-known/acme-challenge/MKBQljn70jXTDK-VO26lPDF9muXjPbnqtJi__lBYJB4 [45.55.223.36]: "<html>\r\n<head><title>500 Internal Server Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>500 Internal Server Error</h1"

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

   Domain: lazsoc.ca
   Type:   unauthorized
   Detail: Invalid response from
   https://lazsoc.ca/.well-known/acme-challenge/dKGLJWuycibpj9oI5zkr7oOUXOMpV0cS9QIpNjThQIY
   [45.55.223.36]: "<html>\r\n<head><title>500 Internal Server
   Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>500
   Internal Server Error</h1"

   Domain: www.lazsoc.ca
   Type:   unauthorized
   Detail: Invalid response from
   https://www.lazsoc.ca/.well-known/acme-challenge/MKBQljn70jXTDK-VO26lPDF9muXjPbnqtJi__lBYJB4
   [45.55.223.36]: "<html>\r\n<head><title>500 Internal Server
   Error</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>500
   Internal Server Error</h1"

   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.

I’ve scoured the internet for solutions but can’t seem to find any that work. I’m also a relative newbie and am having trouble understanding the system and the problems.


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.

Hello,

It looks like that your site was returning a 500 error and Let’s Encrypt was failing to validate your domain name.

What I could suggest in this case is to check your Apache error log for more information regarding the 500 error:

tail -f /var/log/apache2/error.log

Once you sort out the error with the information from the logs, then you could try running certbot again.

Hope that this helps! Regards, Bobby