sententia
Home    Blog

How to check a certificate expiration date

From:  http://superuser.com/questions/580697/how-do-i-view-the-contents-of-a-pfx-file-on-windows
Open a command prompt and type: certutil -dump <path to cert>
and you will see something like this:

C:\myCerts>certutil -dump svc_xxx.pfx
Enter PFX password:
================ Certificate 0 ================
================ Begin Nesting Level 1 ================
Serial Number: zzzzzzzzzzzzzzzzzzzzzzzzzzzz
Issuer: CN=CA-CCC-01-CA, DC=myds, DC=com
 NotBefore: 8/24/2015 9:41 AM
 NotAfter: 8/23/2017 9:41 AM
Subject: CN=svc_xxx
Non-root Certificate
Template: xxxrServiceAccount, xxxPolicy Enforcer Service Account
Cert Hash(sha1): xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
----------------  End Nesting Level 1  ----------------
  Key Container = le-xxxPolicyEnforcerServiceAccount-aaaaaaa-bbbbbbbbbb-cccccccccccccc-dddddddddddd-eeeee
  Unique container name: blah blah
  Provider = Microsoft Enhanced Cryptographic Provider v1.0
Encryption test passed
CertUtil: -dump command completed successfully.