❔ SSL inside AWS EC2
Hello everyone, I am having issues with SSL. I bought a certificate from Sectigo (which I believe is a trusted CA), but when I connected the ssl certificate to nginx and to my nestjs app inside aws ec2, I am having a 'connection not secured'. How to solve this issue? Thanks
Here is the nginx config:
23 Replies
how/where are you getting that error?
(you also got ripped off, SSL certs are free these days via Let's Encrypt)
(I believe AWS has an SSL cert provisioning thing as well)
an SSL cert signed by a public root CA?
seemingly yes https://aws.amazon.com/certificate-manager/
Amazon Web Services, Inc.
Certificate Manager - AWS Certificate Manager - AWS
AWS Certificate Manager helps you provision, manage, and deploy public and private SSL/TLS certificates with AWS services and your internal connected resources.
did you connect to the site via HTTPS?
(and not HTTP)
also SSL certs are free
SSL certs signed by a globally-trusted root CA?
Let's Encrypt
so, like
if everyone can get one
doesn't that dilute the trust of the whole system?
that was always my understanding of why it used to be expensive
Let's Encrypt only issues DV (domain validation) certificates
not EV certs, which also verify the identity of the person or org behind the site
okay
TIL
I have some certs to go make tonight
EV having a price tag makes sense because you need to actually verify the paperwork being sent to you
but DV can be done in an entirely automatic fashion, via the various ACME challenges
ah, okay
so you have to be able to prove you own a particular domain name, then you can get a cert for it
yes
there's a couple challenges for this
the HTTP challenge involves serving a particular string from a particular path on your server (you're given the string to serve when starting the challenge)
yeah
the DNS challenge has you add a particular TXT record to your DNS records (handy for non-HTTP scenarios, or for sites not publicly reachable)
I think there might be some others as well
I, in fact, do not have some certs to make tonight
ACME is also what enables LE certs to have such short expiries (90 days)
is that the normal lifetime?
you gotta re-verify every 90 days?
yes
but the idea is you have certbot or another ACME client just running on a schedule
redoing your certs every 30 days or so (iirc)
only intervening when there's a failure
do the verification secrets change each time?
moreso, if these secrets are exposed on a public endpoint, that the challenger calls, how do they not get stolen?
How It Works
The objective of Let’s Encrypt and the ACME protocol is to make it possible to set up an HTTPS server and have it automatically obtain a browser-trusted certificate, without any human intervention. This is accomplished by running a certificate management agent on the web server.
To understand how the technology works, let’s walk through the proc...
SSL.com Support Team
SSL.com
Which ACME Challenge Type Should I Use? HTTP-01 or DNS-01? - SSL.com
Not sure if you should use the HTTP-01 or DNS-01 ACME challenge? This FAQ outlines the advantages and disadvantages of both DV methods.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.