How To Check Pfx Certificate Expiration Date In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the openssl command to check the expiration date on a PFX certificate in Linux. Execute the following command, replacing “certificate.pfx” with the name of your certificate:
openssl pkcs12 -info -in certificate.pfx
You should see output similar to the following:
Certificate: Data: Version: 3 (0x2) Serial Number: 0 (0x0) Signature Algorithm: sha256WithRSAEncryption Issuer: C=US, ST=California, L=Los Angeles, O=Example Corporation, CN=Example Corp Root CA Validity Not Before: Jun 3 16:19:32 2018 GMT Not After : Jun 3 16:19:32 2021 GMT
In this example, the expiration date for the certificate is June 3, 2021.