I have been using a python script created by a kind soul for a few years to generate the PMS compliant p12 and Custom Key for my SSL cert. The latest version(s) of Python have deprecated some functionality so that the original script no longer functions.
I have forked the original and made the necessary changes, and this works correctly with Python 3.8
Example usage:
user@box:~$python3 pem2plex.py ./mycert.crt ./mycert.key ProcessedMachineIdentifier
The Custom Key will print to console, but you only want the hex string inside the single quotes.
ProcessedMachineIdentifier can be retrieved from your PMS Preferences.xml. The cert itself will be created as certificate.p12
h/t to @jmeehan11 who posted a link to the original years ago.