How to install let’s Encrypt on Amazon Linux

amazon-web-servicesletsencryptssl

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 https://ivopetkov.com/b/let-s-encrypt-on-ec2/ for Apache

Or https://coderwall.com/p/e7gzbq/https-with-certbot-for-nginx-on-amazon-linux for Nginx

Short of it is:

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
sudo certbot-auto certonly --debug --standalone -d yourdomain.com

--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 https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable epel
sudo yum install certbot
sudo certbot certonly --standalone -d yourdomain.com
Related Question