背景
为防止证书过期导致的异常,需检查现有证书的有效期
命令
opessl
# openssl x509 -in server.pem -noout -dates
notBefore=Jul 7 06:53:00 2020 GMT
notAfter=Jul 5 06:53:00 2030 GMT
cfssl
cfssl-certinfo -cert server.pem
为防止证书过期导致的异常,需检查现有证书的有效期
# openssl x509 -in server.pem -noout -dates
notBefore=Jul 7 06:53:00 2020 GMT
notAfter=Jul 5 06:53:00 2030 GMT
cfssl-certinfo -cert server.pem