Bad request when executing certbot

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain

I ran this command:certbot

It produced this output:Failed authorization procedure. (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from β€œ\n\n400 Bad Request\n\n

Bad Request</h1”


My web server is (include version): apache

The operating system my web server runs on is (include version):centos 7

My hosting provider, if applicable, is:dotph

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):


Could you please check your apache configuration?

It seems that you have set apache SSL to listen at port 80…

Thank you

1 Like

Yes, SSL is listening on :80 and :443
With a certificate common name β€˜mailserver’

Or maybe your router is forwarding the external IP ports (80 and 443) to your mailserver.

Thank you Sir Rudy for your promp

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.