Take a certificate from Lets Encrypt and turn it into a pfx
file for Plex to use.
Change the variables CERT_LOCATION
and PLEX_LOCATION
to the correct paths.
This creates a certificate without a password. If you want to add one, change the cron on line 12
, adding your password directly after pass:
.
Place this file in the /etc/cron.daily
folder to run it each night.
The script assumes that you have the settings for the ssl set up inside plex. If you dont, go to Settings (icon on top right corner) > Server > Network (left navigation column). You may need to show advanced.
- Custom certificate location: This should be the same as
PLEX_LOCATION
. - Custom certificate encryption key: This should be the same as your password in the script.
- Custom certificate domain: This should be the same as the domain that Lets Encrypt issue the certificate for.