Access to x509 certificate using LWP?

[email protected] (Sebastien Koechlin) Wed, 27 Feb 2013 17:37:31 +0100
Newsgroups perl.libwww
Message-ID <[email protected]>
Hello!

I'm using a Perl script to monitor many webservers. I do a request on a page
using LWP, check header and content, and print the result (OK/WARNING/ERROR).

For https; I would like to also check the certificat expiration date and
report a WARNING if the expiration date is in few weeks.

Is there any way to access the certificat sent by the remote server using LWP?

(I'm using Red Hat EL 5.3 / perl-libwww-perl-5.805)

-- 
Seb, autocuiseur