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

Leave a comment

Your email address will not be published. Required fields are marked *