Page 1 of 1

SSL Cert on new OVA

Posted: Fri Apr 02, 2021 10:38 am
by wsando
I must be having a case of the dumbs....
Deployed new OVA instance using CentOS7, restored our config from CentOS6 OVA, when to install Certbot to grab an SSL cert from LetsEncrypt and Certbot not able to find an Apache server listening. Fine I say, I will just dump the wildcard cert I have for my domain on it, go to look at the apache config and there is no virtualHost section.

Help?

Re: SSL Cert on new OVA

Posted: Fri Apr 02, 2021 11:52 am
by dchurch
What version of certbot are you using?

Can you paste the full output from when you try running certbot manually from the command line?

Code: Select all

certbot renew
Can you run the following script and PM me the resulting /tmp/httpd-conf.tar.gz?

Code: Select all

tar czf /tmp/httpd-conf.tar.gz /etc/httpd*

Re: SSL Cert on new OVA

Posted: Fri Apr 02, 2021 12:21 pm
by wsando
[root@nagios certs]# certbot --version
certbot 1.13.0



[root@nagios certs]# certbot -d nagios.alplighting.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Requesting a certificate for nagios.alplighting.com
Performing the following challenges:
http-01 challenge for nagios.alplighting.com
Cleaning up challenges
Error while running apachectl graceful.

Job for httpd.service invalid.

Unable to restart apache using ['apachectl', 'graceful']
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.

Re: SSL Cert on new OVA

Posted: Fri Apr 02, 2021 12:56 pm
by wsando
I ended up following the SSL guide to get my wildcard cert working. This is no longer an issue for me, thanks for responding!

Re: SSL Cert on new OVA

Posted: Fri Apr 02, 2021 2:38 pm
by benjaminsmith
This is no longer an issue for me, thanks for responding!
Excellent. We'll go ahead and close this out.

Have a great weekend!