Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Letsencrypt with certbot and nginx on AWS (with Docker)

Select an AWS Ubuntu image and a micro (free tier available).

When logged I install this:

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y wget emacs24-nox curl dnsutils
curl -fsSL get.docker.com | sh
sudo usermod -aG docker ubuntu

Configure security groups allowing incoming traffic to 80 (HTTP) and 443 (HTTPS) ports.

And configure Route 53 with a new DNS name pointing to the IP Address provided to your machine.

Then load this Docker image from the Hub:

docker run -p 443:443 -p 80:80 -ti jordi/letsencrypt

It already contains a barebones nginx installation, the certbot and the certbot plugin for nginx.

You can start your nginx with:

nginx

And connect to http://dns-name-here to check everything works.

Then you can configure it to use HTTPS, using certbot:

certbot --nginx

Then you can connecto to https://dns-name-here using HTTPS. And your browser must show it in green.