How to install let’s Encrypt on Amazon Linux


How do I install Let's Encrypt Certificates on amazon Linux I already have a WordPress website hosted.

Can anyone tell me the steps how do i start with it and what are the commands and what permission I should change and how do i edit ssl.conf and add certificates and auto renew.

Best Answer

Amazon's EPEL doesn't seem to have certbot for me. Try manually installing it, here's a pair of articles with full instructions:

Try for Apache

Or for Nginx

Short of it is:

chmod a+x certbot-auto
sudo certbot-auto certonly --debug --standalone -d

--debug is required because Amazon Linux isn't well tested with certbot. Replace --standalone with whichever certbot plugin you perfer. Essentially just replace the standard examples' usage of certbot with certbot-auto.

Probably best if you check every once in a while for certbot to actually show up in Amazon's EPEL repo and/or to re-download certbot-auto in hopes of getting bug fixes/improvements.

UPDATE for "Amazon Linux 2"

There's finally a certbot package in the EPEL Yum Repositories.

sudo yum install -y
sudo yum-config-manager --enable epel
sudo yum install certbot
sudo certbot certonly --standalone -d
Related Question