You can use the openssl command to check the expiry of an SSL certificate in the Command Line. Here's how:
First, identify the location of the certificate file you want to check. This will depend on your server configuration and which SSL/TLS software you're using.
Use the following command to check the expiry date of the certificate:
openssl x509 -enddate -noout -in /path/to/certificate.pem
Replace /path/to/certificate.pem with the actual path to your certificate file.
This command will output the expiry date and time of the certificate in the following format:
notAfter=MM/DD/YYYY HH:MM:SS GMT
The notAfter field shows the date and time after which the certificate is no longer valid.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-04-05 10:16:47 +0000
Seen: 2 times
Last updated: Apr 05
How can I extract the SSL key from a Certificate Chain?
How can I print all but the first 1000 Lines from a File in Bash?
Bash Script that checks if a Host is available or not?
How can I only get the Column with the Filename from a ls -all output with Awk?
What is the Difference of "source script.sh" and "./script.sh" in Bash?
How can I fix error: Security violation, ping RPC from uid 1001 in Slurm log?
I want to grep for "```*" in a File, in other Words: "```" followed by any Word
Sed: I want to remove a Word after all ``` in the given File