Hello I am getting a SSL certificate error from my logs. After exactly one minute on remote access the stream is terminated. Here is the log:
[CERT] TLS connection from [2601:246:cc00:9:dd0c:1975:718b:9f6]:50337 came in with unrecognized plex.direct SNI name ‘2601-0246-cc00-0009-dd0c-1975-718b-09f6.b480a91be8694837b0995c075455abaf.plex.direct’; using installed plex.direct cert
After some additional troubleshooting…I can stream fine from an outside windows computer it appears. I was having trouble on my android device (cell phone). So perhaps it is my phone to blame? In any event I hope the info is useful.
I can only access Plex through 127.0.0.1 on the hosting machine.
app.plex.tv does not work even on the hosting machine, and http(s)://serverip:32400/web does not work either (from any local device). HTTP://(server ip):32400/web only works when enabling insecure connections but app.plex.tv would still not work on any device because I think it redirects to HTTPS.
Attached is an image of a cert renewal error I’m getting in my logs.
[CERT] TLS connection from 192.168.1.157:54192 came in with unrecognized plex.direct SNI name ‘192-168-1-157.0c1269116f50413487b2e60451b7c320.plex.direct’; using installed plex.direct cert
Hi, I’m having a very similar issue where I cannot claim my server. The server had worked as expected until a few days ago, where my plex App could no longer see my servers. I tried to declaim / reclaim the server, but now I cannot reclaim.
The server logs show this error repeatedly: (60, SSL peer certificate or SSH remote key was not OK) (SSL: no alternative certificate subject name matches target host name 'plex.tv')
Can someone reset my certificate or advise otherwise? Thank you!
To reclaim a server, AND having the tokens already in your browser (this is the sticking point).
Stop PMS
Delete “Preferences.xml”
In “Plex Media Server/Cache”, delete “cert-v2.p12” (the old certificate)
Delete your browser history and retained data for Plex if you can (the tokens),
– If not, Close browser completely, Open new browser, Open Incognito window.
Now start PMS
Give it a moment to communicate with Plex.tv and get a new certificate
Open it either by LAN IP (if not where you’re typing from)
– or http://127.0.0.1:32400/web (the loopback address)
Now you’ll go through new server claim and setup.
Don’t create new library sections. Let it reaffirm what already exists in the DB.
Thanks for the steps, but it doesn’t appear that I have that “cert-v2.p12” file in “Plex Media Server/Cache”. Contents of that folder below.
If I try the rest of the steps, I see the same error (Second block below)
>> /var/lib/plexmediaserver/Library/Application Support/Plex Media Server$ sudo ls -la Cache/
total 92
drwxr-xr-x 8 plex plex 4096 Jun 20 17:41 .
drwxr-xr-x 14 plex plex 4096 Jun 20 17:47 ..
drwxr-xr-x 2 plex plex 4096 Jun 19 17:44 cl-icds-linux-x86_64
-rw-r--r-- 1 root root 6656 Jun 19 21:48 CloudAccessV2.dat
-rw-r--r-- 1 root root 12656 Jun 19 21:48 CloudAccountV2.dat
-rw-r--r-- 1 root root 5632 Jun 19 21:48 CloudUsersServices.dat
-rw-r--r-- 1 root root 576 Jun 19 21:48 CloudUsersSubscriptionsV2.dat
-rw-r--r-- 1 root root 560 Jun 19 21:48 CloudUsersV2.dat
drwxr-xr-x 2 root root 4096 Jun 19 21:48 fontconfig
drwxr-xr-x 2 root root 4096 Jun 19 21:48 OCSP
drwxr-xr-x 258 plex plex 4096 Jun 19 21:48 PhotoTranscoder
-rw-r--r-- 1 root root 7792 Jun 19 21:48 Privacy.dat
-rw-r--r-- 1 root root 4931 Jun 19 21:48 relayHostKey.txt
drwxr-xr-x 4 plex plex 4096 Jun 19 21:48 Transcode
-rw-r--r-- 1 root root 384 Jun 19 21:48 UpdateChannels.dat
drwxr-xr-x 2 plex plex 4096 Jun 19 17:44 va-dri-linux-x86_64
Error:
Jun 20, 2023 17:44:18.706 [140655539755832] WARN - [HttpClient/HCl#37] HTTP error requesting POST https://plex.tv/api/claim/exchange?token=xxxxxxxxxxxxxxxxxxxxBi8sPF (60, SSL peer certificate or SSH remote key was not OK) (SSL: no alternative certificate subject name matches target host name 'plex.tv')
Jun 20, 2023 17:44:18.706 [140655528921912] DEBUG - [Req#15d] MyPlex: Did token exchange for claim (returnCode: -60)
Jun 20, 2023 17:44:18.706 [140655528921912] DEBUG - [Req#15d] MyPlex: Got a token poked, let's act on it.
Jun 20, 2023 17:44:18.707 [140655528921912] DEBUG - [Req#15d/HCl#39] HTTP requesting GET https://plex.tv/api/v2/user/privacy?X-Plex-Token=
Jun 20, 2023 17:44:26.605 [140655539755832] WARN - [HttpClient/HCl#38] HTTP error requesting GET https://plex.tv/users/1e0d7617b2d1e23b/avatar?c=1687211799 (60, SSL peer certificate or SSH remote key was not OK) (SSL: no alternative certificate subject name matches target host name 'plex.tv')
Jun 20, 2023 17:44:26.743 [140655539755832] WARN - [HttpClient/HCl#39] HTTP error requesting GET https://plex.tv/api/v2/user/privacy?X-Plex-Token=xxxxxxxxxxxxxxxxxxxxficate or SSH remote key was not OK) (SSL: no alternative certificate subject name matches target host name 'plex.tv')
I was using my own certificate, yes. But that setting has been cleared out after removing the Preferences.xml file. And for this troubleshooting I’ve been accessing Plex via my local network address.
IPv4 enabled? Within Plex I only have an option to enable IPv6, which is enabled. If you’re asking about within my network, yes IPv4 is enabled.