Checking validity of Let's Encrypt certificates in ISPConfig

Hi everybody,
because I currently have some problems with the automatic renewal of Let's Encrypt certificates I've built this script to check the used certificates for validity. I hope it helps somebody else, too!
Regards!