× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



 
Thanks Scott.  Works as advertised, GREAT.

--
Doug Hart 
 

-----Original Message-----

Subject: Re: Digital Certificate Expiration

Doug,

I wrote a command called CHKCERT that you can run to check when a
certificate will be expired.  For example, you might do this:

      CHKCERT HOST(www.klements.com) PORT(443) DAYS(7)

It will connect to www.klements.com and check that the SSL certificate
will be good for at least 7 more days.  If not, it'll send back an
*ESCAPE message.

That means you can write a CL program that runs this command and do
something like this:

PGM

    CHKCERT    HOST(www.klements.com) PORT(443) DAYS(7)
    MONMSG CPF0000 EXEC(DO)
        SNDMSG MSG('WWW.KLEMENTS.COM:443 WILL BE EXPIRED!') +
               TOUSR(KLEMSCOT)
    ENDDO

ENDDO

(You could change the SNDMSG to SNDDST if you prefer to send e-mail,
etc.) Then you could configure your job scheduler to run that program
every morning (for example) so that you'd have a week's notice if a
certificate is going to expire.  If you forgot to replace it, you'd get
another message the next day, etc.

This CHKCERT tool was written for an article entitled "How to Check if
SSL Certificates Are Expired" that I published in the Club Tech iSeries
Programming Tips newsletter.  If you have a Pro subscription to
iSeriesNetwork.com, you can read the article and download the tool from
the following link:
http://www.iseriesnetwork.com/article.cfm?id=51386

---
Scott Klement  http://www.scottklement.com




************************************
This e-mail and any files transmitted with it are proprietary and intended 
solely
for the use of the individual or entity to whom they are addressed. If you have
received this e-mail in error please notify the sender. Please note that any 
views
or opinions presented in this e-mail are solely those of the author and do not
necessarily represent those of ITT Industries, Inc. The recipient should check
this e-mail and any attachments for the presence of viruses. ITT Industries 
accepts
no liability for any damage caused by any virus transmitted by this e-mail.
************************************



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.