Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add more diagnostics (hints) to certbot #9935

Open
reppep opened this issue May 3, 2024 · 0 comments
Open

Please add more diagnostics (hints) to certbot #9935

reppep opened this issue May 3, 2024 · 0 comments

Comments

@reppep
Copy link

reppep commented May 3, 2024

If you're having trouble using Certbot and aren't sure you've found a bug or
request for a new feature, please first try asking for help at
https://community.letsencrypt.org/. There is a much larger community there of
people familiar with the project who will be able to more quickly answer your
questions.

My operating system is (include version):

Rocky Linux release 9.3 (Blue Onyx)

I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc):

yum

I ran this command and it produced this output:

[root@rocky sites]# certbot --apache
...
Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.
Ask for help or search for solutions at https://community.letsencrypt.org/. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

Certbot's behavior differed from what I expected because:

letsencrypt.log and certbot -v were not informative, but I did find a suggestion on the site to create a simple vhost .conf file. I created an additional (redundant) vhost file which certbot detected, and now I have a cert. Thanks for certbot!

Can you add more detail to that error? Something like this would have helped me figure out what to do:

Certbot needs to find a file matching /etc/httpd/conf.d/*.conf.
The file must contain a line like: <VirtualHost *:80>
It must also contain a ServerName line which specifies a domain name which points to your server.

Here is a Certbot log showing the issue (if available):

Logs are stored in /var/log/letsencrypt by default. Feel free to redact domains, e-mail and IP addresses as you see fit.

Here is the relevant nginx server block or Apache virtualhost for the domain I am configuring:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant