amazon-web-servicesamazon-ec2ssl-certificatearuba

How to get SSL certificate?


I purchased a domain with DNS management on Aruba and I pointed it to an ec2 instance using elastic IP.
Now the questions are:

-How can I get an SSL certificate for my website?
-Should I ask Aruba or AWS?
-And is it possible to get it for free?

If it can be useful, my website is written in nodejs.


Solution

  • In AWS world you can use AWS ACM (Amazon Certificate Manager). ACM provides free certificates with auto renewal, but it can be attached only to certain number of services like ELB, API Gateway, CloudFront... No way you can attach it to EC2, because ACM doesn’t provide private keys for you.

    If you want to have only one EC2 with EIP, please, use Let’s Encrypt or buy certificate somewhere. Let’s Encrypt could be configured for auto renewal but, from my experience, it can broke suddenly.

    AWS ACM works great