Domain ssl error when accessing the domain with defined port

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: garpit.truenascore.one

I ran this command:
i started my nodejs app on my home ubuntu server on port 6161

It produced this output:
when i access the route it output this

My web server is (include version):
im using apache2

The operating system my web server runs on is (include version):
ubuntu 22.04.1 LTS

I can login to a root shell on my machine (yes or no, or I don't know):
yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): certbot 1.21.0

Does your nodejs app know how to do TLS? Is it configured to use your certificate?

5 Likes

yes i already configure the nodejs app to use https with the certificate

im using https instead of tls idk if its the same or not

1 Like

On port 6161, as you say in your post? Or on port 6969, as you show in your screenshot?

4 Likes

i tried to change the port from 6161 to 6969 but still the same ssl error, right now it is running on port 6969

this is what I see:

PORT    STATE    SERVICE
80/tcp  filtered http
443/tcp filtered https
2 Likes

TLS/HTTPS does not appear to be turned on over port 6969:

curl -Ii http://garpit.truenascore.one:6969
HTTP/1.1 404 Not Found
X-Powered-By: Express
Access-Control-Allow-Origin: *
Content-Security-Policy: default-src 'none'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 140
Date: Fri, 26 May 2023 17:55:41 GMT
Connection: keep-alive
Keep-Alive: timeout=5

curl -Ii https://garpit.truenascore.one:6969
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
4 Likes

My results differ?

rip:T430 ~ >>  curl -Ii http://garpit.truenascore.one:6969
curl: (52) Empty reply from server

rip:T430 ~ >>  curl -Ii https://garpit.truenascore.one:6969
HTTP/1.1 404 Not Found
X-Powered-By: Express
Access-Control-Allow-Origin: *
Content-Security-Policy: default-src 'none'
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=utf-8
Content-Length: 140
Date: Fri, 26 May 2023 18:02:01 GMT
Connection: keep-alive
Keep-Alive: timeout=5

Screenshot_20230526_110535

4 Likes

That's better now!

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.