Are there any instructions on how to replace certbot-auto
and what to replace it with? I've been searching for a couple hours now and can't seem to find anything.
My certbot-auto
commands are telling me that my system isn't supported anymore and to visit https://certbot.eff.org/ to check for other alternatives. I can't seem to find any such information though. The commands still work, they just have that deprecation message every time, and I'd rather find an alternative before it breaks.
I found this topic: Replace certbot-auto with acme.sh? that almost seems to have a solution. There's a set of instructions at the top, but then, through comments, it's pointed out that other things should be done and I can't piece together the actual final set of steps that are needed.
I also looked through some of the entries from Certbot - Certbot Instructions but I have no clue which system I'm supposed to select from that list. I know I'm running Apache, but "Amazon Linux" isn't listed, and I don't know what it would be covered under. Plus, all of the instructions seemed to be for fresh installs rather than replacing certbot-auto
.
What I'm trying to find is "Here's how to migrate from certbot-auto to ". It'd be nice to not have to issue new certs until my current ones expire. it'd also be nice to only have to make minimal changes (if any) to the apache configs. And It'd be nice to be able to auto-renew the certs still (currently done via crontab
entry).
Background:
Several years ago, I followed some instructions from somewhere on how to use letsencrypt on my AWS hosted server for my domain, and also set it up to automatically renew the certificate. Recently I added a couple domains to the cert.
I don't really remember what all I did to get it originally set up. I just know there's a crontab entry that auto-renews the cert, and that there's some paths/stuff in my apache conf (mostly ssl.conf).
> sudo crontab -l
0 3 * * 6 cd /opt/letsencrypt/ && ./certbot-auto renew && /sbin/apachectl restart
> sudo ls -l /etc/letsencrypt/live/wedul.com
total 4
lrwxrwxrwx 1 root root 34 Jul 7 22:03 cert.pem -> ../../archive/wedul.com/cert19.pem
lrwxrwxrwx 1 root root 35 Jul 7 22:03 chain.pem -> ../../archive/wedul.com/chain19.pem
lrwxrwxrwx 1 root root 39 Jul 7 22:03 fullchain.pem -> ../../archive/wedul.com/fullchain19.pem
lrwxrwxrwx 1 root root 37 Jul 7 22:03 privkey.pem -> ../../archive/wedul.com/privkey19.pem
-rw-r--r-- 1 root root 682 Sep 12 2018 README
My domain is: wedul.com
I ran this command:
> sudo /opt/letsencrypt/certbot-auto certificates
It produced this output:
Your system is not supported by certbot-auto anymore.
certbot-auto and its Certbot installation will no longer receive updates.
You will not receive any bug fixes including those fixing server compatibility
or security problems.
Please visit https://certbot.eff.org/ to check for other alternatives.
...
My web server is (include version):
> sudo apachectl -v
Server version: Apache/2.4.48 ()
Server built: Jun 25 2021 18:53:37
Note: apachectl
is a #!/bin/sh
wrapper script on top of /usr/sbin/httpd
.
The operating system my web server runs on is (include version):
This was set up so long ago I'm not even certain anymore. It's an AWS t2.micro and Amazon lists it as "Platform: Amazon Linux (Inferred)". If it helps, I dug through the certbot-auto
script to find what test is causing DEPRECATED_OS=1
and it's the final else
clause that's doing it.
Also, when I ssh in, I get this message:
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
Sometimes it also includes a message that there are yum
packages that need updates.
My hosting provider, if applicable, is: N/A
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): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
> sudo ./certbot-auto --version
Your system is not supported by certbot-auto anymore.
certbot-auto and its Certbot installation will no longer receive updates.
You will not receive any bug fixes including those fixing server compatibility
or security problems.
Please visit https://certbot.eff.org/ to check for other alternatives.
certbot 1.8.0