Issue installing 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. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

www.iapps.net.au

Server is

I ran this command: ( Followed these instructions, including the installation of SNAP )


It produced this output:
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 135,142,134,129,123,29,90,98,95
Requesting a certificate for mail.jazrealty.com and 8 more domains
Performing the following challenges:
http-01 challenge for cleverdogdesign.com
http-01 challenge for iapps.net.au
http-01 challenge for mail.jazrealty.com
http-01 challenge for mail.mealsonwheelsredcliffe.com.au
http-01 challenge for www.bentley.jazrealty.com
http-01 challenge for www.iapps.net.au
http-01 challenge for www.jazrealty.com
http-01 challenge for www.kiwari.com.au
http-01 challenge for www.mealsonwheelsredcliffe.com.au
Cleaning up challenges
File: /etc/httpd/conf.d/le_http_01_challenge_pre.conf - Could not be found to be deleted
  • Certbot probably shut down unexpectedly
    File: /etc/httpd/conf.d/le_http_01_challenge_post.conf - Could not be found to be deleted
  • Certbot probably shut down unexpectedly
    An unexpected error occurred:
    FileNotFoundError: [Errno 2] No such file or directory: '/etc/httpd/conf.d/le_http_01_challenge_pre.conf'
    Please see the logfiles in /var/log/letsencrypt for more details.
    [root@vs-rickhoy ~]# sudo certbot certonly --apache
    \Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator apache, Installer apache

My web server is (include version):

CENTOS 7.9 vmware

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

My hosting provider, if applicable, is:

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

Yes

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

Yes, WHM and Cpanel

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

Just installed the latestest versions.

Also Note I am seeing the following on my WHM Service Status window !

Disk Information

Device Mount Point Usage Status
/var/lib/snapd/snap/certbot/793 /var/lib/snapd/snap/certbot/793 100% (48,768 of 48,768)
/boot /boot 53% (270,720 of 508,588)
/ / 62% (95,346,096 of 154,701,028)
/var/lib/snapd/snap/core20/875 /var/lib/snapd/snap/core20/875 100% (63,104 of 63,104)
/var/tmp /var/tmp 1% (26,504 of 3,997,376)
/var/lib/snapd/snap/core/10444 /var/lib/snapd/snap/core/10444 100% (100,224 of 100,224)
/tmp /tmp 1% (26,504 of 3,997,376)
1 Like

Hello @CleverDog,

cPanel/WHM manages its Apache configuration and SSL certificates in a very specific way that Certbot doesn't understand.

By trying to use certbot --apache, you risk causing problems with your cPanel setup.

Instead, you should use the AutoSSL feature that is built into cPanel, and will automatically create certificates for all of your domains: https://docs.cpanel.net/whm/ssl-tls/manage-autossl/

I recommend removing certbot on this server and proceeding with AutoSSL.

If you have questions about it, you can ask cPanel support who will be able to help you understand it and also to set things up on your server if necessary.

3 Likes

Hi, Great thanks, when i looked through everything I thought this was my best solution to deploy SSL across my server.

I am now trying to uninstall it, but cant seem to find the correct command. any idea would be gratefully accepted ! :blush:

2 Likes

Nothing too complicated:

snap remove certbot
yum -y remove snapd

(Assuming you don't have any other snaps installed).

1 Like

You are an absolute STAR, I have been looking everywhere and everything I found failed.

Ok, so now I start again trying to get SSL installed. I will take a look at your suggestion in your previous post and see if I can get it working.

Thank you so much for your help and have a great evening or morning depending upon which part of the planet you are on :slight_smile:

2 Likes

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