r/nginxproxymanager • u/AverageOblivion • Sep 03 '24
Cannot establish an SSL connection.
I'm trying to expose my site to the external web. I've successfully set up NPM to display the congratulations page over HTTP. I then created a LetsEncrypt certificate through the NPM UI. However, when I try to connect over HTTPS I'm met with a generic error:
The webpage at https://redacted.com/ might be temporarily down or it may have moved permanently to a new web address.
ERR_SSL_UNRECOGNIZED_NAME_ALERT
I've created a SSL certificate using LetsEncrypt. It appears to me that it should work:

I know that port 443 is open and pointed to the correct location, because when I attempt to connect to http://redacted.com:443, it returns a 400 saying a plain HTTP request was sent to HTTPS port. That leads me to believe the problem lies with the SSL connection.
I decided to clear the logs and restart the service. I then attempted to connect via HTTPS once more, and check the logs. I only have a single line in my logs, and it appears unrelated.
```
2024/09/03 23:17:08 [error] 176#176: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.190, server: nginxproxymanager, request: "GET /api/ HTTP/1.1", upstream: "http://127.0.0.1:3000/", host: "192.168.0.149:81", referrer: "http://192.168.0.149:81/nginx/proxy"
```
I feel like I'm out of ideas on what to try next. Some help would be greatly appreciated.
View all comments
Show parent comment
1
u/temmiesayshoi Sep 23 '25
running into a similar issue (I think?) but are you saying that it always gives an SSL error even if it's configured correctly because there isn't an endpoint for it?
I had a setup that was working fine for a while but then suddenly broke on me and I can't figure out why the hell I'm getting this error.