Hi trumpy81,
I’ve fixed the issue and it’s important I share with you the root cause in hope that you can escalate it to the powers that be so it can be fixed.
There were lots of red herrings in my hunt to find the issue. My Comodo certificate renewed about the time the webhook stopped working. I upgraded to a VPS from shared hosting only a few months before the certificate renewal & did a major upgrade of DSM on the NAS about the same time the webhook stopped working too.
In my last post, after a very brief read of the error I found, I said it was probably to do with my Server (either with the VPS, the certificate or the php.ini file). However I researched how these certificates work and determined the problem had to be with Plex Media Server.
This is what happens (simplified):
Plex Media Server sends a curl request to my script. It sees the certificate and picks out the issuer of the certificate, in this case ‘COMODO RSA Domain Validation Secure Server CA’. Plex Server is packaged with a cacert.pem file. This file lists all the certificate authorities (issuers) and validates the issuer. However, the cacert file included with PMS is well out-of-date. The very first line states when it was created:
## Certificate data from Mozilla as of: Thu Apr 7 03:47:06 2011
This is the problem. My Comodo certificate renewed and the relevant issuer & public key isn’t in the cacert file packaged by PMS, because it’s so out-of-date.
I went into the package files for PMS on my NAS and replaced the cacert.pem file with the newest version available and my issue is resolved!
Here’s a link to the latest version is anyone wants it (official):
They also have a lot of information to understand how the process works.
I suggest the cacert.pem file is updated in the PMS package - I suspect other people may have issues too, especially with how prominent https is becoming.
If anyone needs help updating their cacert file on Synology NAS I can provide a walkthrough. It’s simpler to update on Windows (which I also tried and validated). I can provide information on that too, if anyone needs it.
Thanks!
Moderator Edit: Link to unofficial certificate removed.