Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding AWS public certificate with NGINX

I am using EC2 and working with NGINX (by PuTTY); I chose AWS Public Certificate therefore I understood that to use HTTPS I need to configure the NGINX too.
I found some tutorial about it, but everywhere they add ssl_certificate and ssl_certificate_key that I haven’t seen in AWS certification.

How I can find AWS SSL certificates and ssl_certificate_key?
Or is there another solution for this?

like image 226
Yoni Avatar asked Dec 07 '22 10:12

Yoni


2 Answers

You can only use ACM SSL certificates with AWS Load Balancers, CloudFront and API Gateway. it is not possible obtain the certificate from ACM and install it directly on a server.

You can attach certificates issued with ACM to the AWS Load balancer and hide your instance behind the load balancer, more on this here

If you want to manage ssl directly on your Nginx you will need to issue certificate with another tool i.e letsencrypt.

Using Free Let’s Encrypt SSL/TLS Certificates with NGINX

like image 53
Aliaksei Stadnik Avatar answered Dec 28 '22 10:12

Aliaksei Stadnik


it is now possible by using:

AWS Certificate Manager for Nitro Enclaves

https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html

https://aws.amazon.com/about-aws/whats-new/2020/10/announcing-aws-certificate-manager-for-nitro-enclaves/

like image 29
Chris Avatar answered Dec 28 '22 11:12

Chris