Generate a free LetsEncypt SSL Certificate for your WordPress Site on AWS EC2 Ubuntu Instance

Prerequisites:

  • Setup your EC2 Instance with Ubuntu
  • Installed WordPress Site
  • Installed CertBot
  • Configured Ngnix Virtual Host for non SSL

This guide assumes that you have already setup a WordPress site on your EC2 Ubuntu instance with Nginx with no SSL enabled.

SSH into your Ubuntu EC2 and run the following commands:

sudo certbot --nginx -d example.com -d www.example.com

Follow the onscreen instructions and press option 2 to automatically edit your Nginx site virtual hosts file to redirect for SSL

Reload Nginx

sudo /etc/init.d/nginx reload

🚀 **Support Our DevOps Blog with Your Amazon Shopping!** 🚀 Love shopping on Amazon? Now you can fuel your shopping spree *and* support our blog at no extra cost! Just use our link for your next purchase: **[Shop on Amazon & Support Us!] Browse Stuff on Amazon Every click helps us keep sharing the DevOps love. Happy shopping!

Leave a Comment