Install Let's Encrypt wildcard SSL certificate on Ubuntu, Nginx and AWS Route53

SSH to your server and install Certbot:

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-nginx
sudo apt-get install certbot python3-certbot-dns-route53

To obtain a wildcard certificate for Route53 DNS need to create AWS:IAM user with AmazonRoute53FullAccess permissions and save AWS keys to ~/.aws/config

Example an aws config file:


Run the following command to install certificate for your domain:

sudo certbot -a dns-route53 -i nginx -d "*" -d --server