-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plex server not working if using SSL #1307
Comments
Not a bug. If you're using self signed certs you're gonna have to pass in the certs to nodejs. This is more of a support question |
Add |
/app # apk update
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
v3.21.2-132-ge7c2a305a2e [https://dl-cdn.alpinelinux.org/alpine/v3.21/main]
v3.21.2-133-g82634e1215d [https://dl-cdn.alpinelinux.org/alpine/v3.21/community]
OK: 25395 distinct packages available
/app # apk add curl
(1/9) Installing brotli-libs (1.1.0-r2)
(2/9) Installing c-ares (1.34.3-r0)
(3/9) Installing libunistring (1.2-r0)
(4/9) Installing libidn2 (2.3.7-r0)
(5/9) Installing nghttp2-libs (1.64.0-r0)
(6/9) Installing libpsl (0.21.5-r3)
(7/9) Installing zstd-libs (1.5.6-r2)
(8/9) Installing libcurl (8.11.1-r0)
(9/9) Installing curl (8.11.1-r0)
Executing busybox-1.37.0-r9.trigger
OK: 15 MiB in 28 packages
/app # curl -L https://10.0.10.2:32400/
curl: (60) SSL: no alternative certificate subject name matches target ipv4 address '10.0.10.2'
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the webpage mentioned above. |
Yeah so the issue is if curl can't verify it then nodejs can't either. This issue is not a bug but the certs provided is not proper and there is nothing we can do about it. You'll have to figure out why the ssl lets encrypt ssl provided by plex is not being verified like that because it should technically. A workaround for now could be: |
Are you sure the SSL certificate is generated for your IP too? Not just for your domain? Try to use only the domain name instead of the IP, or regenerate the Letsencrypt certificate to include your IP |
I am not the one generating the cert, it was generated when I created my plex server and claimed it. |
Leaving this for others that may face the same issue as me. My OPNsense router was preventing DNS rebinds. I had to create a plex.conf file under /usr/local/etc/unbound.opnsense.d with this content: server:
private-domain: "plex.direct" Restart unbound and now all is working. |
Description
Enabling 'Use SSL' in settings for plex server will result in 'Failed to connect to Plex.' error.
Log file shows:
Plex is using his own self signed certificate and secured connections in Network tab is set to 'Preffered'
Version
2.3.0
Steps to Reproduce
Screenshots
No response
Logs
Platform
desktop
Database
SQLite (default)
Device
Mac
Operating System
OSX
Browser
Brave
Additional Context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: