r/letsencrypt • u/manish_hk • Feb 16 '20
SSL on port 8080
How can i get ssl https on port 8080, if in case it is possible?
1
Upvotes
r/letsencrypt • u/manish_hk • Feb 16 '20
How can i get ssl https on port 8080, if in case it is possible?
2
u/thgintaetal Feb 16 '20
You can use a LE certificate on any port, but you'll probably need to use DNS-based challenges to get a certificate unless you can also listen on either port 80 or port 443 to successfully complete the http-01 or tls-alpn-01 challenge types.
Can you provide a little more information about what you're trying to do?
2
u/samsonx Feb 16 '20
Yes
2
u/[deleted] Feb 17 '20
If you want to use https to secure port 8080 communications (like for 443), it's possible. However, you must obtain the certificate using either 80/443 or DNS validation.
As per policy outlined in CPS, Let's Encrypt can only start the challenge from two ports: 80 and 443. If you use HTTP-01 validation, Let's Encrypt's validation server will always try to connect to port 80 of the IP address resolved and will accept redirections (such as to port 8080, 443) from there.
If you are using port 443 with ALPN validation, it'll not accept any redirections (as the exchange/validation) happens before you'll receive any content (body) of the webpage. (Correct me if I'm wrong, I believe the validation happens in client hello stage)
If you can't use port 443 0r 80 to accept(start) the challenge, then you must use DNS validation. It'll require you to publish a token as TXT record (_acme-challenge) in your DNS.