Member-only story
A step-by-step guide for AWS EC2 provisioning using Terraform: Let’s Encrypt SSL Certificate in EC2 nginx server or Azure Virtual Machine ubuntu — Part 13 ( + Wildcard SSL )
Let’s Encrypt SSL Certificate in EC2 nginx server or Azure VM ubuntu — Part 13. The document discusses securing a web server running on Ubuntu in either an Amazon EC2 instance or an Azure Virtual Machine with a free SSL certificate from Let’s Encrypt. We also added Wildcard SSL certification for subdomains.

Let’s Encrypt the SSL Certificate in EC2 nginx server or Azure VM Ubuntu Roadmap:
· Let’s Encrypt the SSL Certificate in EC2 nginx server or Azure VM Ubuntu Roadmap:
∘ Introduction
∘ Step 1: EC2 Provisioning
∘ Step 2: nginx installation
∘ Step 4: Add DNS Record Type A to your domain name pointing to your EC2 or Azure VM instance Public IP
∘ Step 5: Install Certbot on Ubuntu ( Linux )
∘ Step 6: Configure Nginx for Your Domain Name
∘ Step 7: Nginx with Lets Encrypt ( certbot )
∘ Step 8: Wildcard SSL
∘ Conclusion
· About me
∘ References
Introduction
SSL is the standard technology for securing an internet connection by encrypting data sent between a website and a browser (or between two servers). It prevents hackers from seeing or stealing any information transferred, including personal or financial data.
Installing Let’s Encrypt in the Ubuntu virtual machine. It will cover:
Let’s Encrypt is a global Certificate Authority (CA). We let people and organizations around the world obtain, renew, and manage SSL/TLS certificates. Our certificates can be used by websites to enable secure HTTPS connections. Let’s Encrypt offers Domain Validation (DV) certificates.
1. EC2 Provisioning:
- Key Pair: Generate a key pair for SSH access to your EC2 instance. This involves creating a public and private key pair on your local…