SSL installation in AWS Default IAM


A new scenario for installation of Let’sencrypt SSL into AWS IAM with the nignx server.

Let start with SSL installation on Linux IAM in AWS

HOw to install Letsencrypt SSL in AWS EC2 AWS IAM with Nginx

Dowanload certbot-auto

curl -O

Give appropriate permission

chmod +x certbot-auto

Move it into /usr/local/bin

sudo mv certbot-auto /usr/local/bin/certbot-auto


curl -O && chmod +x certbot-auto && sudo mv certbot-auto /usr/local/bin/certbot-auto

Now install Let’sencrypt SSL

For single Domain Certificate Installation

sudo /usr/local/bin/certbot-auto --debug -v --server certonly -d

For multiple Domains

sudo /usr/local/bin/certbot-auto --debug -v --server certonly -d -d

Installed SSL certificate Directory


This is the last step, configure virtualhost file

Create separate Virtualhost file or Add this in HTTP (80) configuration file.

server {

listen 443;

ssl on;
ssl_certificate /etc/ssl/your_domain_name.pem; (or bundle.crt)
ssl_certificate_key /etc/ssl/your_domain_name.key;
ssl_certificate_trust /etc/ssl/chain.pem;

Restart the server

systemctl restart nginx

Let’sencrypt certificate should be renew every 3months of cycle.

Renew certificate

Edit crontab -e

sudo crontab -e

30 2 * * * /usr/local/bin/certbot-auto renew --debug


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.