Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check expiry date of pfx file?

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

like image 380
Hello123 Avatar asked Nov 19 '14 18:11

Hello123


People also ask

How do I check my PFX certificate?

The contents of a pfx file can be viewed in the GUI by right-clicking the PFX file and selecting Open (instead of the default action, Install). This will open mmc and show the pfx file as a folder. Open the pfx folder and the Certificates subfolder, and you will see the certificate(s) contained in the pfx.


1 Answers

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.

like image 116
Rolo Avatar answered Sep 29 '22 06:09

Rolo