Server Version#: 1.32.5.7516
Player Version#: 1.59.1.3398
Hi,
I’m using the docker version of PMS on a RHEL based Linux (Rocky).
Plex in general is working quite well but I would like to use my own certificate.
What I did:
Created a certificate with RSA 4K and put in in a p12
Mounted this p12 inside the container
at Server > Network I put in the path to the cert inside the container incl. the password for the private Key (no spaces or else, double checked)
Recreated the docker container
Strict TLS is not being used
Unfortunately the certificate is not being taken (I’ve also tried icognito for caching issues). I always get the selfsigned cert.
What needs to be done to be able to use my own LE cert?
I’ve looked again at the permissions and on the file they were 755.
But the owner was not correct (using rootless docker).
After changing the owner and group to the subuid/subgid the user inside was plex insted of “nouser”.
Unfortunately this didn’t fix the issue. @MatthKarl You mentioned something about changing to https first. What exactly do you mean and where?
Also please bear in mind that I’m using a reverse proxy.
Regarding the https. When I first accessed the server in my browser via the IP address, it used he http protocol. Once I added the cert information, silly me, only changed the IP address to the domain name, but didn’t add the s to http in front to switch to an encrypted protocol. And I kept wondering why I still had an unencrypted connection. Plex does not automatically change to a secure connection, you specifically have to choose it.
Regarding the reverse proxy. I do use an nginx, however not for Plex. But in all cases, I do use a normal http connection to forward, while the SSL cert is served by the proxy. I’m not sure you would actually see the SSL of the server behind the proxy, or you’d have to possibly configure it accordingly. Do you get the proper secure connection when you access it internally and direct to the PMS?
Okay you just mean in the browser as an protocol.
This I have already checked and I still get the self signed cert instead of the correct one.
I could only forward http from IIS (Reverse proxy) to plex but then there wouldn’t be encryption all the way (what I want to have). As I’m quite strict IIS gives an HTTP500 when not using a globally signed cert.
Are there any logs I could check?
Would that be inside the debug/trace logs?
Yes, that is true and that’s what I’ve tried to accomplish. The proxy is the second step.
But exactly there lies the issue. I do not know why this doesn’t work even though I already got it to work once on a windows system (without docker). But for certain reasons I have to change to linux.
That what I explained further up.
Connecting directly only gives me the self-signed (*.[hexnumber].plex.direct) cert instead of the correct one.
I’ve tried it also with icognito to be sure no cache is interfering but still the same.
I use internally a domain, and use my router to hand out the IP addresses for the hosts. So I can point to https://vs03.domain.com:32400 and end up at my Plex server. You might use the hosts file on your PC to point your domain name to the Plex IP and check.
For me only these didn’t work. I think it depends on what openssl version you are using and what are the defaults there.
I had to add the following to be able to use it: