0
votes

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
Are you using a load balancer? Are you using Apache or Nginx?Mark B
@MarkB I'm using Apache. and I did set up a load balancer.A Israfil
If you are using a load balancer, then create an SSL certificate in the AWS Certificate Manager service, and add it to the load balancer. Search for that and you will find plenty of questions and answers about doing exactly that on this site.Mark B

4 Answers

2
votes

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.

1
votes

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]

1
votes

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

0
votes

You can attach this certificate on load balancer and forward this to backend instance port 80 443->80 When applying certificate to elb you have two option to upload certificate into ACM or to IAM you can choose anyone and simply copy paste the certificate derails