Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
If I have a Bash shell in my Mac or Linux, how to cert file when it will expire? Not a website, but my certificate file itself, assume that I have the csr, key, pem and chain files.

1 Answer

0 votes
by (36.8k points)

With openssl:

openssl x509 -enddate -noout -in file.pem

The output is in the form:

notAfter=Nov  3 22:23:50 2014 GMT

To know about Linux join the Linux training 

 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...