Getting expiry date of SSL certificate
malkishtini at gmail.com
malkishtini at gmail.com
Fri Jan 19 14:23:54 UTC 2024
Hi Mike,
Very good question, we have a way to do it in PowerShell.
https://www.technotes.omnis.net/Technical%20Notes/Extending%20Omnis/Using%20
the%20oProcess%20Worker/2.Implementation.html
So, the question now how to invoke the PowerShell scripts from Omnis studio
on Windows?.
Thank you,
Mayada
-----Original Message-----
From: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> On Behalf Of
Mike Matthews - Omnis via omnisdev-en
Sent: Friday, January 19, 2024 8:45 AM
To: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Cc: Mike Matthews - Omnis <omnis at lineal.co.uk>
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 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-Xp5jrc62SExy5qX2
45eKG4hpwMWT8Cp6gXcVAkMXWBWuluPNwKhnMZ&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list