I have a script that fetch https://whatever.com/data
with LWP::UserAgent. How may I know if the SSL certificate for whatever.com has expired. with curl I got a message saying so, but perl seems insentivite to this security aspect.(at first look) I prefer my perl script but I would like to know how to verify the certificate.