5

I'm looking for a way to find the expiration of a certificate file (either .pfx or .cer) without installing it.

I have access to read the file but can not install it.

Josh R
  • 177
  • 3
  • 7

1 Answers1

9

Uh... double-click the *.cer file. Feast your eyes on the part that says "Valid from x/x/x to x/x/x"

This does not require installing the cert.

What am I missing here?

Ryan Ries
  • 55,481
  • 10
  • 142
  • 199
  • 2
    Welp, sometimes I over think the solution. Thanks! Needless to say, this is exactly what I am looking. – Josh R Nov 15 '13 at 01:20
  • I would like to know an automated way to do this, as we're using PowerShell DSC to install our certs and I want to know if the file is a newer version than the one installed, so I can tell if it needs to be replaced or not. Right now we simply check if the cert exists on the server or not to determine if it needs to be installed, but that will not be enough once the cert expires on the server and we've updated the file to a newer "version". – deadlydog May 17 '19 at 23:26