Re: Access to x509 certificate using LWP?

[email protected] (Michiel Beijen) Wed, 27 Feb 2013 18:01:50 +0100
Newsgroups perl.libwww
Message-ID <CABD0r12Z0=bbzU8Re7M+tLv62x_T+H6Pp+P1ThSFRP6tydHRRw@mail.gmail.com>
--e89a8f3ba159ee1c4804d6b7baf2
Content-Type: text/plain; charset=UTF-8

Hi,
Op 27 feb. 2013 17:38 schreef "Sebastien Koechlin" <[email protected]>
het volgende:

> 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 think you can not do that via LWP, but you could use
http://search.cpan.org/~hirose/Net-SSL-ExpireDate-1.10/lib/Net/SSL/ExpireDate.pm

--
Mike

--e89a8f3ba159ee1c4804d6b7baf2--