pem cert check expiration date code example Example: check pem expiration date openssl x509 -enddate -noout -in file.pem