All,
I answered my own question by going into Thawte's online chat room.
Here's a handy perl script to view the expiration date of a digital certificate
on Raq 4:
#!/usr/bin/perl
# Check date of a virtual site's digital certificate
#
# usage: checkcert www.domain.com
$certfile = "/home/sites/$ARGV[0]/certs/certificate";
foreach $line (split /\n/, `openssl x509 -noout -text -in $certfile`) {
$expiration = $1 if ($line =~ /Not After : (.*)$/);
}
print "$expiration\n";
Herb Rubin wrote:
> Is there any command line tools to view when a certificate is going to expire?
>
> I would like to write a perl script to check all my certs on the cobalt raq 4
> and send me an email a week ahead if any are going to expire.
>
> --
> Herb Rubin Pathfinders Software
> [EMAIL PROTECTED] http://www.pfinders.com
> phone: 650-692-9220 fax: 650-692-9250
>
> _______________________________________________
> cobalt-developers mailing list
> [EMAIL PROTECTED]
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
--
Herb Rubin Pathfinders Software
[EMAIL PROTECTED] http://www.pfinders.com
phone: 650-692-9220 fax: 650-692-9250
_______________________________________________
cobalt-developers mailing list
[EMAIL PROTECTED]
http://list.cobalt.com/mailman/listinfo/cobalt-developers