How can I install an SSL certificate to my EC2 instance running wordpress? I have tried the following links:
https://aws.amazon.com/blogs/aws/new-aws-certificate-manager-deploy-ssltls-based-apps-on-aws/
http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_server-certs.html
However I have been unable to successfully have any changes propagate.
Steps I followed:
-Request ACM SSL Certificate
-Create a Load Balancer with the SSL Certificate attached
-Attach load balancer to EC2 instance
4 Answers
As mentioned you cannot use AWS's certificate. But you can use another excellent free certificate provider - Let's Encrypt.
They provide an easy to install and use tool that supports Apache and Nginx - along with most flavors of Linux.
ANSWER:
I was able to use Let's Encrypt through the AWS CLI to add an auto renewing SSL certificate. The link below was very helpful despite being on Google Cloud. The instructions transfer over since both servers use bitnami for the Wordpress.
https://www.youtube.com/watch?v=DBnQkH1v-Xw&app=desktop
I only had to make one change to the instructions and that was to change the RewriteRule to be
RewriteRule https://(domain here) [R,L]
Another way to go is to manually set it up by logging in to your server. You should get some cheap SSL certificate and have it installed inside your /etc/apache2/ssl
folder. Make sure your 443 port is opened and that openssl
is installed on your server and enabled.
Here is a complete guide on how to do what I just said https://medium.com/@adnanxteam/how-to-add-ssl-certificate-to-laravel-on-ec2-aws-18104cc036d1