45

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

Pooven
  • 1,744
  • 1
  • 25
  • 44
Hello123
  • 503
  • 1
  • 5
  • 11
  • 2
    A pfx file does not expire, only the certificate(s) it contains. Therefore it may happen that an pfx file contains both a valid and an outdated certificate. – Robert Nov 19 '14 at 18:26

1 Answers1

81

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.

Community
  • 1
  • 1
Rolo
  • 3,208
  • 1
  • 24
  • 25