Get a free SSL certificate from Let's Encrypt and configure auto-renewal on Nginx using Certbot.
Prerequisites
Root or sudo access to a Linux server, SSH access, and a domain name pointing to your server.
Step 1 — Update System
sudo apt update && sudo apt upgrade -y
Step 2 — Install Certbot
sudo apt install -y certbot python3-certbot-nginx
Step 3 — Obtain Certificate
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
Step 4 — Test Auto-Renewal
sudo certbot renew --dry-run
Step 5 — Verify SSL
Test your SSL at https://www.ssllabs.com/ssltest/ — aim for an A+ rating.
Conclusion
Your SSL certificate is now installed and will auto-renew. For complete Server Security Hardening contact our team.