How to check expiry date of pfx file?

Hello123 picture Hello123 · Nov 19, 2014 · Viewed 18.1k times · Source

How should I check the expiry date of pfx file? Can this be done in Visual Studio?

Answer

Rolo picture Rolo · Nov 19, 2014

As explained here, you can review the information of the certificate before import it using:

certutil -dump YourCertificate.pfx

If you want to run this from Visual Studio you can do this:

  1. Go to Tools > External Tools > Add
  2. Set the required info: Name=CertUtil Command=C:\Windows\System32\certutil.exe Arguments=-p YourPass -dump $(ItemPath). Check Use output window.

With this you can execute the command for the selected file in Visual Studio.