How to determine SSL cert expiration date from a PEM encoded certificate?

前端 未结 9 2093
感动是毒
感动是毒 2020-11-30 16:21

If I have the actual file and a Bash shell in Mac or Linux, how can I query the cert file for when it will expire? Not a web site, but actually the certificate file itself,

9条回答
  •  萌比男神i
    2020-11-30 17:04

    I have made a bash script related to the same to check if the certificate is expired or not. You can use the same if required.

    Script

    https://github.com/zeeshanjamal16/usefulScripts/blob/master/sslCertificateExpireCheck.sh

    ReadMe

    https://github.com/zeeshanjamal16/usefulScripts/blob/master/README.md

提交回复
热议问题