Getting expiry date of SSL certificate

Kelly Burgess kellyb at montana.com
Sat Jan 20 09:41:09 UTC 2024


On the Mac, I managed to get the file-based query working with .cer and .crt files by adding the '-inform der' parameter -

If (right(certpath,4)='.cer')|(right(certpath,4)='.crt')
	Calculate script as con('openssl x509 -enddate -noout -inform der -in ',kSq,certpath,kSq)
Else
	# works with .pem files by default, -inform pem not needed
	Calculate script as con('openssl x509 -enddate -noout -in ',kSq,certpath,kSq)
End If

I haven't found a way to get it working with .p12 files yet.

Kelly


More information about the omnisdev-en mailing list