Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl certificate validity check

Status
Not open for further replies.

MattGranger

Programmer
Jun 20, 2005
5
GB
Chaps,

I'm trying to find out how to check the expiry date of a certificate on a server from a Perl script. If anyone's got any ideas about the best way of doing this I would be most grateful,

Thanks

Matt
 
Code:
use Mail::Sendmail;

my %mail = (
    To      => 'webmaster@server.com',
    From    => 'inquiringmind@host.com',
    Message => 'What is the expiry date of your certificate?',
);

sendmail(%mail) or die $Mail::Sendmail::error;

:)

(But seriously, what kind of certificate via which protocal?)

jaa
 
I want to check the expiry date of the SSL certificate - essentially, Perl script running on client machine - queries server to see when it's certificate is due for expiry, and then issues warning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top