Adding SSL (HTTPS) to your website keeps it secure by encrypting data between your server and visitors. This helps protect sensitive information, improves trust, and makes your site look more reliable to search engines like Google.
- Install Certbot:
sudo apt install certbot python3-certbot-nginx -y
- Get an SSL certificate:
sudo certbot --nginx -d yourdomain.com -d www.yourdomain.com
Certbot will automatically configure HTTPS!