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:...

12. Mai 2020 ยท Carsten