plex-playlist-sync icon indicating copy to clipboard operation
plex-playlist-sync copied to clipboard

SSL self-signed certificate issue / ignore request / bug

Open Prankish8407 opened this issue 1 year ago • 0 comments

Describe the bug Hi,

First off i like what you are doing so thanks for that. I currently run a remote plex server a remote host due to my homelab connection being to slow for multiple streams. my homelab server basically does everything else (expect Plex).

Now when i run the container via HTTP to the remote host everything works and spotify playlists are imported into plex via API. The issue starts when i change HTTP to HTTPS.

I rent the server via ultra.cc --> a known plex host but no root / admin rights on the server, i dont need it since i only run plex on there. Since they control everything you are limited to the use of their domain --> in this case as follows:

https://cypher-direct.usbx.me:PORTNUMBER

so my configuration is pretty simple in my homelab:

playlistSync: image: rnagabhyrava/plexplaylistsync:latest container_name: playlistSync environment: - PLEX_URL= http://cypher-direct.usbx.me:PORTNUMBER - PLEX_TOKEN=PlexToken - SECONDS_TO_WAIT=21600 - SPOTIFY_CLIENT_ID=CLIENTID - SPOTIFY_CLIENT_SECRET=SECRET - SPOTIFY_USER_ID=USERID restart: unless-stopped

The above configuration works perfectly but i dont want my homelab to communicate over the internet via http. If i then change it to https i get the following error:

`2024-01-05T13:18:19.864646939Z INFO:root:Starting playlist sync

2024-01-05T13:18:19.943271702Z WARNING:urllib3.connection:Certificate did not match expected hostname: cypher-direct.usbx.me. Certificate: {'subject': ((('commonName', '.HIDDEN.plex.direct'),),), 'issuer': ((('countryName', 'US'),), (('organizationName', "Let's Encrypt"),), (('commonName', 'R3'),)), 'version': 3, 'serialNumber': 'HIDDEN', 'notBefore': 'Dec 30 19:07:18 2023 GMT', 'notAfter': 'Mar 29 19:07:17 2024 GMT', 'subjectAltName': (('DNS', '.HIDDEN.plex.direct'),), 'OCSP': ('http://r3.o.lencr.org',), 'caIssuers': ('http://r3.i.lencr.org/',)}

2024-01-05T13:18:19.943297344Z ERROR:root:Plex Authorization error`

Could you please add a feature (flag) to ignore self-signed certificate checks

For example: environment:

  • IGNORE_SSC=1 for yes 0 for null --> default 0

If any further information is required please dont hasitate to ask.

Prankish8407 avatar Jan 05 '24 13:01 Prankish8407