Check SSL certificate expiry with PHP and curl
Today I wanted to create a simple way to check the expiry date of my SSL certificates to avoid getting hit by unexpected error messages in the browser (although Iโm using Lets Encrypt auto-renew features, I sometimes get a container with an expired certificate). Iโm already using CachetHQ as my statuspage with a custom PHP script that I run on an old webspace without any other scripting features. So, I went ahead and created this abomination of a script to give me a simple JSON output with all my URLs and their expiry in days:...