Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS: Your system is not supported by certbot-auto anymore

Trying to renew letsencript on Amazon Linux 2 using certbot and I get the following message:

Your system is not supported by certbot-auto anymore. Certbot cannot be installed.

I am totally lost and I do not know what to do. I cannot find any exhaustive documentation that gives a solution.

like image 812
Dino Avatar asked Nov 02 '20 15:11

Dino


5 Answers

According to https://community.letsencrypt.org/t/certbot-1-9-0-release/135414 :

Changed
certbot-auto was deprecated on all systems except for those based on Debian or RHEL.

And from this website: https://community.letsencrypt.org/t/fail-to-detect-amazon-linux-2-certbot/136140

The best chance to get Certbot working on Amazon Linux 2 is to install the rpm from EPEL as described here: https://aws.amazon.com/blogs/compute/extending-amazon-linux-2-with-epel-and-lets-encrypt/
like image 101
Sharuzzaman Ahmat Raslan Avatar answered Nov 15 '22 21:11

Sharuzzaman Ahmat Raslan


Here is instructions on how to install certbot on any system: https://certbot.eff.org/instructions

Particularly for Ubuntu 18.04 with Nginx webserver I was able to install certbot using the following commands:

snap install core
snap refresh core
snap install --classic certbot

Then you can run certbot using certbot command

like image 28
AlexT Avatar answered Nov 15 '22 23:11

AlexT


What worked for me was to follow this part from Extending Amazon Linux 2 with EPEL official docs:

cd /tmp
wget -O epel.rpm –nv \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y ./epel.rpm
sudo yum install python2-certbot-apache.noarch

After that, certbot renew started to work.

like image 4
Ivan Aracki Avatar answered Nov 15 '22 21:11

Ivan Aracki


We dropped certbot altogether on our amazon linux as we couldn't install snapd. We are using getssl (another acme client) and it is looking good. getssl on github

like image 4
goelectric Avatar answered Nov 15 '22 22:11

goelectric


For Ubuntu 16.04, Let’s Encrypt client (certbot). Reset or set up a new AWS Instance(Linux).

sudo apt install software-properties-common

sudo add-apt-repository ppa:certbot/certbot

sudo apt update

sudo apt install certbot python3-certbot-nginx

To check version number, run

certbot --version

Sample output:

certbot 0.31.0

The below command only works when port 80 is open AWS

sudo certbot --nginx --agree-tos --redirect --uir --hsts --staple-ocsp --must-staple -d www.example.com,example.com --email [email protected]
like image 1
paul Avatar answered Nov 15 '22 23:11

paul