Getting expiry date of SSL certificate

malkishtini at malkishtini at
Fri Jan 19 14:23:54 UTC 2024

Hi Mike,
Very good question, we have a way to do it in PowerShell.

So, the question now how to invoke the PowerShell scripts from Omnis studio
on Windows?. 

Thank you,

-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at> On Behalf Of
Mike Matthews - Omnis via omnisdev-en
Sent: Friday, January 19, 2024 8:45 AM
To: OmnisDev List - English <omnisdev-en at>
Cc: Mike Matthews - Omnis <omnis at>
Subject: Re: Getting expiry date of SSL certificate

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
       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,
Start a new message -> mailto:omnisdev-en at

Manage your list subscriptions at Start a new
message -> mailto:omnisdev-en at 

More information about the omnisdev-en mailing list