-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Failed to Log-in, certificate verification #78
Comments
Hi, the SSL you're trying to use is associated with the Internet domain name
Are you able to access your plex server's web interface by typing: Probably the easiest thing to do is just disable SSL for this Integration and just use your private IPV4 IP address of the device you have installed Plex on on your LAN; along with port default |
Yeah I think we misunderstood each other a little bit. I want to use this integration without SSL verification, but it does not matter if I untick that box, it still tries to connect and verify the SSL Certificate. I am trying to go towards my local IP address, however the integration must somehow go the external route, and it gets the random letsencrypt certificate that your plex instance gets from the web-service from Plex Web. In other words, no I cannot go towards that address since it's a weird certificate. I have for the moment created a public certificate which I'm going towards now, but that is not what I wanted and just a temporary workaround. The main problem is, I cannot choose NOT to verify the SSL certificate, it will always tell me in the logs that the certificate is not valid. |
Can you please take a screenshot of settings you're using with this Integration during the initial setup (don't forget to hide your plex token)? For example, mine looks like below (when connecting to it directly without SSL on my LAN): Can you confirm that you can access your Plex Media Server on your LAN by typing |
Thanks for the screenshot. Now it makes sense. Hence, you would need to use: Or, if you want to connect to your Plex server directly (via IP only) on your LAN, you would have to NOT use Plex's SSL: |
I do understand all of this, that is not the problem. |
Thanks for letting me know. I just removed that setting in Release |
Describe the Bug
When I try to setup the integration via the UI I get Failed to Log-in. It does not matter if I try select or deselect "Verify SSL".
The Error
2024-05-27 13:23:12.967 WARNING (SyncWorker_43) [urllib3.connection] Certificate did not match expected hostname: 172.16.69.130. Certificate: {'subject': ((('commonName', '.0e2a2bd6cef743858bb27afaae82035c.plex.direct'),),), 'issuer': ((('countryName', 'US'),), (('organizationName', "Let's Encrypt"),), (('commonName', 'R3'),)), 'version': 3, 'serialNumber': '03286A09725E16C8C2D1A89AA46CF6E2AD03', 'notBefore': 'Apr 11 08:53:42 2024 GMT', 'notAfter': 'Jul 10 08:53:41 2024 GMT', 'subjectAltName': (('DNS', '.0e2a2bd6cef743858bb27afaae82035c.plex.direct'),), 'OCSP': ('http://r3.o.lencr.org',), 'caIssuers': ('http://r3.i.lencr.org/',)}
Indicate if you followed all steps in the troubleshooting doc
Yes?
What data does the sensor display if any?
Can not set it up.
What displays when visiting the API URL from the troubleshooting guide?
The plex token works, verified with a curl from within the container running hass.
Does the default Home Assistant Plex component work for you?
Yes.
Home Assistant Version
Latest, 2024.5.4
Additional Context
The text was updated successfully, but these errors were encountered: