[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Certificate tools on raq 4
- Subject: Re: [cobalt-developers] Certificate tools on raq 4
- From: Herb Rubin <herbr@xxxxxxxxxxxx>
- Date: Mon Dec 10 12:23:01 2001
- Organization: Pathfinders Software
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
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
> herbr@xxxxxxxxxxxx http://www.pfinders.com
> phone: 650-692-9220 fax: 650-692-9250
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
--
Herb Rubin Pathfinders Software
herbr@xxxxxxxxxxxx http://www.pfinders.com
phone: 650-692-9220 fax: 650-692-9250