April 17th, 2015, 11:52 AM
Query a Web Server SSL Cert Expiration Date
New to the forum and hope to stay involved here. I wrote a server inventory management system and would like to try and enhance it bit further with some automation, does anyone know how to query an SSL Certs expiration date using cold fusion?
- Create CF Scheduled Job that would query a list of URL's (https://)
- Get the the SSL Certs Expiration Date and then compare that with the Current Date
- Generate automated email if date range is within x number of days
April 19th, 2015, 01:16 PM
As far as I know, since this is a fairly specific and unusual use case, there isn't anything built into CF that can do this. You'd have to leverage a Java library, or write your own Java class (or write CF code that invokes the relevant Java classes) to do this.
April 20th, 2015, 09:35 AM
Thanks! I wasn't sure if I could somehow call a particular URL and leverage some type of remote host identifier and then try and dive deeper.
April 21st, 2015, 02:51 AM
April 21st, 2015, 01:04 PM
Going to be a learning curve for me but will check that out. I thought I might be able to pull it off with using CFHTTP but it looks like that only returns limited content
//////// OUTPUT ////////
Date Tue, 21 Apr 2015 17:00:31 GMT
Last-Modified Fri, 18 Jan 2013 14:00:09 GMT