查看证书有效期
查看证书有效期
1.查看jks格式的证书(tomcat)
keytool -list -v -keystore xxxxx.jks
2.查看.pem格式的证书 (Nginx)
openssl x509 -noout -startdate -enddate -in xxxxxx.pem
3.查看.crt格式的证书
openssl x509 -in fullchain1.crt -noout -text | grep Not
-----------------------------------------------------------------------------------------------------------------------------------------