Hi, ok, I’ll be more specific, if there is a way to actually fix this without the pass. So, to start with, this is my configuration:
Debian 9 server
Plex 1.12.1.4885
Own domain name on the server (my.own.domain, it’s not exactly a ddns, but more or less, let me know if you need more info on this)
Let’s encrypt certificate on the server (I use it for other websites inside the server as well and it works nicely)
Certificate for plex is generated from the let’s encrypt one with the following:
openssl pkcs12 -export -out /path/to/cert.pfx -inkey /etc/letsencrypt/live/me/privkey.pem -in /etc/letsencrypt/live/me/cert.pem -certfile /etc/letsencrypt/live/me/chain.pem -name “my.own.domain” -passout pass:certpassword
Plex configuration:
Remote access enabled
Public port forced to 32400
on the network settings:
certificate location is /path/to/cert.pfx (cert.pfx is readable/writable by plex user, /path/to is not)
key for the cert is certpassword
domain of custom cert is my.own.domain
custom url is https://my.own.domain:32400
port 32400 (TCP) is open on the router of course.
With these settings, if I open https://my.own.domain:32400 in a browser it loads the plex certificate and then of course it gives a security error and doesn’t load the page.
Following a suggestion on the forum I’ve also tried to disable the remote access feature in the general setting tab because it was claimed that it would prevent the plex certificate from loading, to no avail. I’m of course restarting the plex service on the system all the time to test this.
I’ve also tried to setup a reverse proxy entry in nginx to make https://my.own.domain:32400 point to https://my.own.domain/plex but I get an error 401 unauthorised access (let’s not worry about this for the moment, I don’t think it’s relevant)
And this is the relevant log (it seems that it loads plex certificate first, then it fails to load mine):
Apr 01, 2018 22:19:46.944 [0x7ff8f2bfe700] INFO - Plex Media Server v1.12.1.4885-1046ba85f - ubuntu PC x86_64 - build: linux-ubuntu-x86_64 ubuntu - GMT 02:00
Apr 01, 2018 22:19:46.944 [0x7ff8f2bfe700] INFO - Linux version: 4.14.0-0.bpo.3-amd64 (#1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14)), language: it-IT
Apr 01, 2018 22:19:46.944 [0x7ff8f2bfe700] INFO - Processor Intel® Pentium® CPU J4205 @ 1.50GHz
Apr 01, 2018 22:19:46.944 [0x7ff8f2bfe700] INFO - /usr/lib/plexmediaserver/Plex Media Server
Apr 01, 2018 22:19:46.944 [0x7ff8fec87800] DEBUG - BPQ: [Idle] -> [Starting]
Apr 01, 2018 22:19:46.944 [0x7ff8fec87800] VERBOSE - BPQ: delaying processing 120 second(s)
Apr 01, 2018 22:19:46.946 [0x7ff8fec87800] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.13.0, threadsafe=1
Apr 01, 2018 22:19:47.066 [0x7ff8fec87800] DEBUG - Running migrations.
Apr 01, 2018 22:19:47.152 [0x7ff8fec87800] DEBUG - ChangestampAllocator: initialized to 96180
Apr 01, 2018 22:19:47.152 [0x7ff8fec87800] DEBUG - Opening 2 database sessions to library (com.plexapp.plugins.library.blobs), SQLite 3.13.0, threadsafe=1
Apr 01, 2018 22:19:47.164 [0x7ff8fec87800] DEBUG - Running migrations.
Apr 01, 2018 22:19:47.167 [0x7ff8fec87800] DEBUG - Relay: read 3 cached entries from hosts file
Apr 01, 2018 22:19:47.186 [0x7ff8fec87800] DEBUG - CERT: Installed certificate with fingerprint 68:ff:1f:8f:21:0f:7b:eb:42:f2:c2:2e:63:cf:bb:21:6e:df:84:0a.
Apr 01, 2018 22:19:47.186 [0x7ff8fec87800] DEBUG - CERT: Installed new private key.
Apr 01, 2018 22:19:47.186 [0x7ff8fec87800] DEBUG - CERT: Subject name is /C=US/ST=California/L=Los Gatos/O=Plex, Inc./CN=*.b311d3daa5074cd583ecf425f78406c1.plex.direct
Apr 01, 2018 22:19:47.186 [0x7ff8fec87800] DEBUG - CERT: Requesting OCSP response from ‘http://ocspx.digicert.com/’ for stapling.
Apr 01, 2018 22:19:47.187 [0x7ff8fec87800] VERBOSE - CERT: Successfully generated OCSP stapling request
Apr 01, 2018 22:19:47.187 [0x7ff8fec87800] DEBUG - CERT: Installed intermediate certificate.
Apr 01, 2018 22:19:47.187 [0x7ff8fec87800] ERROR - CERT: Found a user-provided certificate, but couldn’t install it.
Apr 01, 2018 22:19:47.188 [0x7ff8ef3fd700] DEBUG - HTTP requesting GET http://ocspx.digicert.com/MFEwTzBNMEswSTAJBgUrDgMCGgUABBSnVdbEyh8T3xvVlkPGHNCJxnqCPgQUlIuJ90hyifJRStmIe%2BVhtaqc1QECEAOrKiSdbu%2F%2BjAOvpoKJEnE%3D