Print notBefore and notAfter fields from a certificate file.

Section: HTTP and TLS Testing

Show certificate dates

bash
bash
openssl x509 -in cert.pem -noout -dates
Explanation

Print notBefore and notAfter fields from a certificate file.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing HTTP and TLS Testing
Inspect TLS certificate chain
Open a TLS session and print certificate details.
OpenIn sheetbashsame section
Fetch response headers
Make a HEAD request to inspect headers.
OpenIn sheetbashsame section
Verbose HTTP request
Display request and response details.
OpenIn sheetbashsame section
Override DNS for one request
Pin a host:port to a chosen IP address.
OpenIn sheetbashsame section
Send request from interface
Use a specific local interface for outbound traffic.
OpenIn sheetbashsame section
Use an HTTP proxy
Send an HTTP request through a proxy.
OpenIn sheetbashsame section