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
Error in /etc/httpd/conf.d/ssl.conf on CentOS 8 #7397
Comments
I don't think that's what's happening. Try this:
Result:
The act of installing |
Thanks. My test confirms your findings. I have filed this result with CentOS, though my report appears to be held in a moderation queue. |
I think you can fix the problem by (re)starting Apache through |
Running systemctl restart httpd gave me See "systemctl status httpd.service" and "journalctl -xe" for details. on CentOS8 |
Fixed mine by removing |
When the mod_ssl package is installed, it should create a self-signed key and certificate files for the localhost. If the files are not automatically created, you can create them using the openssl command:
then run certbot-auto again |
@worthwhileindustries Yes, that definitely creates the missing This has got to be a bug though. @arcdetri Did anyone ever get back to you about the bug report? |
Hm. It appears this is just "the way" now? https://bugzilla.redhat.com/show_bug.cgi?id=1764838
|
Confirming this. I was searching for at least 1.5 hours because my virtualhost was not being resolved. Deleting |
We've made a lot of changes to Certbot since this issue was opened. If you still have this issue with an up-to-date version of Certbot, can you please add a comment letting us know? This helps us to better see what issues are still affecting our users. If there is no activity in the next 30 days, this issue will be automatically closed. |
This issue has been closed due to lack of activity, but if you think it should be reopened, please open a new issue with a link to this one and we'll take a look. |
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):
CentOS 8
I installed Certbot with (certbot-auto, OS package manager, pip, etc):
certbot-auto
I ran this command and it produced this output:
/usr/local/bin/certbot-auto certonly --apache -d www.example.com
Error message refers to /etc/httpd/conf.d/ssl.conf, saying file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty.
Need to fix this error by deleting the erroneous configuration file and rerunning the Certbot command:
rm /etc/httpd/conf.d/ssl.conf
/usr/local/bin/certbot-auto certonly --apache -d www.example.com
Certbot's behavior differed from what I expected because:
certonly should not create /etc/httpd/conf.d/ssl.conf in the first place, and it should not contain an error, as I will create the SSL virtual host manually
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:
The text was updated successfully, but these errors were encountered: