Getting expiry date of SSL certificate
Mike Matthews - Omnis
omnis at lineal.co.uk
Fri Jan 19 13:44:34 UTC 2024
Hello Kelly,
Very lovely thank you.
Who knows how to do this on a Windows machine please?
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co/>
On 19 Jan 2024, at 03:42, Kelly Burgess <kellyb at montana.com<mailto:kellyb at montana.com>> wrote:
Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.
On the Mac, I can do the following to get the expiration date of a named certificate in my keychain -
Calculate certname as "Developer ID Application: Kelly Burgess (76LPV4WMTA)"
Calculate script as con('security find-certificate -p -c ',kSq,certname,kSq,' | openssl x509 -enddate -noout')
Calculate script as con('Do shell script ',kDq,script,kDq)
Do $root.$runapplescript(script,result,error)
That pipes the security find-certificate output to the openssl x509 tool, and in result I get something I could parse and convert to a date -
'notAfter=Aug 16 11:11:48 2026 GMT'
Kelly
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,axgmdEMWPIHUuBcrmrERwCrATH3jSfTM2Tn_o_x5y07nssN5FUhV6ihmr-Xp5jrc62SExy5qX245eKG4hpwMWT8Cp6gXcVAkMXWBWuluPNwKhnMZ&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list