Getting expiry date of SSL certificate

Mike Matthews - Omnis omnis at
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<mailto:mike.matthews at><><>

On 19 Jan 2024, at 03:42, Kelly Burgess <kellyb at<mailto:kellyb at>> 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'

Manage your list subscriptions at,1,axgmdEMWPIHUuBcrmrERwCrATH3jSfTM2Tn_o_x5y07nssN5FUhV6ihmr-Xp5jrc62SExy5qX245eKG4hpwMWT8Cp6gXcVAkMXWBWuluPNwKhnMZ&typo=1
Start a new message -> mailto:omnisdev-en at

More information about the omnisdev-en mailing list