James Legg

Monday Jul 13, 2009

OpenSolaris Support and Extra Repositery Certificate Expiry checking

So you paid for support for OpenSolaris, and have a certificate for the supported IPS repositery at pkg.sun.com/supported  or you have got your self a free certificate from pkg.sun.com/extras the so that you can add VirtualBox and/or Adobe Flash, but you want to get some advanced warning when your certificate is due to expire?

 Take a look at check_cert.sh and see if it does what you want.

Edit the top of the script so that it has a sensible e-mail and number of months to check for:

EMAIL_ADDR=user@example.com
WARN_MONTHS=3

Run it something like this from a regular cron job:

0 0 10,20 * * check_cert.sh /var/pkg/ssl/OpenSolaris_standard_support.certificate.pem
0 0 10,20 * * check_cert.sh /var/pkg/ssl/OpenSolaris_extras.certificate.pem

Your  system will have to be setup to let mailx send email someplace sensible for this script to work - and configuring sendmail is a little bit beyond the scope of this blog post.

Please do let me know if you spot an bugs or think there is a better way.



Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers