Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatNerdyPikachu committed Apr 2, 2020
1 parent 4df6d30 commit 6bdac16
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ This proxies requests to Plex's ``/library/metadata`` endpoints, and adds in sub
1. Download the [latest version of metaproxy](https://github.com/ThatNerdyPikachu/metaproxy/releases/latest) for your OS/arch, and unzip it somewhere.

2. Grab your Plex servers ``*.<hash>.plex.direct`` certificate
- That's inside the main app data directory on Windows & Linux ([see this Plex support article for more information](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/))
- On macOS, it's in the regular library caches (``~/Library/Caches/PlexMediaServer/certificate.p12``)
- Thanks to Plex for providing me with this information!
- That's inside the main app data directory on Windows & Linux ([see this Plex support article for more information](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/))
- On macOS, it's in the regular library caches (``~/Library/Caches/PlexMediaServer/certificate.p12``)
- Thanks to Plex for providing me with this information!

3. Decrypt your certificate
- The key to this is equal to the SHA512 **hash** of the string ``plex<MACHINE ID>``
- Where ``<MACHINE ID>`` is equal to the value of ``ProcessedMachineIdentifier`` from your servers advanced settings, [see this Plex support article for more information](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/)
- So, if my machine ID was ``deadbeef``, the string to hash would be ``plexdeadbeef``.
- The key is lowercase, as is the string to hash.
- The key to this is equal to the SHA512 **hash** of the string ``plex<MACHINE ID>``, where ``<MACHINE ID>`` is equal to the value of ``ProcessedMachineIdentifier`` from your servers advanced settings, [see this Plex support article for more information](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/)
- So, if my machine ID was ``deadbeef``, the string to hash would be ``plexdeadbeef``.
- The key is lowercase, as is the string to hash.
Example commands to decrypt the certificate:
```
openssl pkcs12 -in certificate.p12 -out plex.cert -clcerts -nokeys -passin "pass:<that hash>"
Expand All @@ -40,7 +39,7 @@ plexinc/pms-docker
(If there is something I am configuring wrong here, please open an issue, PR, or post on the [Plex forum thread](https://forums.plex.tv/t/metaproxy-for-plex/566250). Thanks!)

5. Configure your reverse proxy
- I use [Caddy](https://caddyserver.com/v1), but feel free to use what you want!
- I use [Caddy](https://caddyserver.com/v1), but feel free to use what you want!

My configuration is as so (note the ``*``):
```
Expand Down

0 comments on commit 6bdac16

Please sign in to comment.