How to Install SSL on AWS EC2 WordPress Site How to Install SSL on AWS EC2 WordPress Site wordpress wordpress

How to Install SSL on AWS EC2 WordPress Site


If you created WordPress on AWS using "Bitnami",you may ssh to your instance and run:

sudo /opt/bitnami/bncert-tool

See bitnami docs for details


If you're looking for easy and free solution, try https://letsencrypt.org/. They have a easy to follow doc for anyone.

TLDR; Head to https://certbot.eff.org/, choose your OS and server type and they will give you 4-5 line installation to install certificate automatically.

Before attempting, make sure your domain name is correctly pointed to your EC2 using Route53 or Elastic IP.

For example, here's all you need to run to automatically get and install SSL on a Ubuntu EC2 running nginx

$ sudo apt-get update$ sudo apt-get install software-properties-common$ sudo add-apt-repository ppa:certbot/certbot$ sudo apt-get update$ sudo apt-get install python-certbot-nginx 

Best of luck!


According to the Tutorial, since you have configured only an EC2 instance, direct approach is to purchase a SSL certificate and install it into apache server. For detailed steps follow the tutorial HOW TO ADD SSL AND HTTPS IN WORDPRESSHow to Add SSL and HTTPS in WordPress.

If you plan to use AWS Certificate Manager issued free SSL certificates, then it requires either to configure a Elastic Load Balancer or the CDN CloudFront. This can get complicated if you are new to AWS. If you plan to give it a try with AWS Cloudfront, follow the steps in How To Use Your Own Secure Domain with CloudFront.

Using Cloudfront also provides a boost in performance since it caches your content and reduces the load from your EC2 instance. However one of the challenges you will face is to avoid mixcontent issues. There are WordPress plugins that are capable of resolving mixcontent issues, so do try them out.