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 https://dl.eff.org/certbot-auto

Give appropriate permission

chmod +x certbot-auto

Move it into /usr/local/bin

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

OR

curl -O https://dl.eff.org/certbot-auto && 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 https://acme-v01.api.letsencrypt.org/directory certonly -d stegsolutions.com

For multiple Domains

sudo /usr/local/bin/certbot-auto --debug -v --server https://acme-v01.api.letsencrypt.org/directory certonly -d stegsolutions.com -d www.stegsolutions.com

Installed SSL certificate Directory

/etc/letsencrypt/live/

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

 

techouse

I love helping beautiful people like you. I love hanging out with my dogs.

You may also like...

Leave a Reply

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

× How can I help you?