Refresh on updated certificate file?

Server Version#: 1.13.5.5332
Player Version#: N/A

Does the media server re-read the specified custom certificate file if it has changed?

I’ve have searched for an answer but I can’t find a mention of it anywhere.

If you change your cert, you must remove and reload it if you don’t want to restart PMS.
PMS will read the cert each time it starts up.

Well, that’s not too onerous. I have a cron job checking to see if the certificate needs updating so it’s not a very big deal to add a service restart for pms when the update has been done.

Thanks for the answer!

Curious that your cert is always changing ??

Using letsencrypt for my certs, they renew every 90 days.

Thanks, good to know! :+1:

Letsencrypt puts the most current certificate in /etc/letsencrypt/{your domain}/live/cert.pem

Because Plex needs a pkcs12 format, you need to merge and reformat them, but since none of the files move, you can automate this in the same cronjob you use to update your letsencrypt cert.

Assuming you already have a certificate setup , make a cronjob to renew it and make it into a pkcs12 format:

/usr/local/bin/certbot renew && openssl pkcs12 -export -out {new.p12} -passout pass:{cert_password} -inkey /etc/letsencrypt/{yourdomain}/privkey.pem -in /etc/letsencrypt/{yourdomain}/cert.pem -certfile /etc/letsencrypt/{yourdomain}/fullchain.pem

Obviously replacing the stuff in brackets.

Have everything already set up in a cron-job, I was just enquiring if pms automatically detected that the certificate file had been updated.

Oh sorry. Yes, obv you have to reload after changing a config file.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.