Getting expiry date of SSL certificate

Kelly Burgess kellyb at
Fri Jan 19 21:37:24 UTC 2024

By the way, for certs on Mac that are not in your keychain, you can feed a file path directly to the openssl x509 tool.  But I only had success with a .pem file -- it would not take a .cer, a .p12 or a .crt file.  Maybe there's a way to do the same with a different openssl command, or maybe you can convert the other formats to .pem first.

  Calculate certname as '/Applications/Omnis Studio'
  Calculate script as con('openssl x509 -enddate -noout -in ',kSq,certname,kSq)
  Calculate script as con('Do shell script ',kDq,script,kDq)
  Do $root.$runapplescript(script,result,error)
  ## result = e.g. "notAfter=May 14 10:33:07 2023 GMT"


More information about the omnisdev-en mailing list