It currently cannot detect if some intermediate is expiring.
This could happen if the certificate chain was not updated for example.
Maybe this is a job for a different tool that checks validity more thoroughly like checkssl, but those don't have the email notification feature...
Just as a proof-of-concept, this truly horrible code below kind of works. As very minimum I expect it needs to have a command-line option to enable or disable, and it would be better if it could work with file inputs as well.
It currently cannot detect if some intermediate is expiring. This could happen if the certificate chain was not updated for example. Maybe this is a job for a different tool that checks validity more thoroughly like checkssl, but those don't have the email notification feature... Just as a proof-of-concept, this truly horrible code below kind of works. As very minimum I expect it needs to have a command-line option to enable or disable, and it would be better if it could work with file inputs as well.