24

I have a PFX file on my drive. I want to see the certificate chain for it. How do I see this? I am asking for a visual tool since I'm sure this won't be the last time I need to view certificate information, and I know of no tool that does this...

Camron B
  • 1,650
  • 2
  • 14
  • 30

3 Answers3

31
certutil -dump filename.pfx

MS doc: http://technet.microsoft.com/library/cc732443.aspx

Although that is for Win 8 or Server 2012. I have Win 7 on my development machine - not sure if this program is present by default or came with Visual Studio.

New Alexandria
  • 6,951
  • 4
  • 57
  • 77
user2793921
  • 463
  • 4
  • 8
8

Below also works fine in cmd:

openssl pkcs12 -info -in path to cert

for more info check these links :

https://superuser.com/questions/580697/how-do-i-view-the-contents-of-a-pfx-file-on-windows/1212800

https://www.sslshopper.com/article-most-common-openssl-commands.html

In case if you run into openssl issue, means if it's not installed, download openssl and refer path to openssl.exe in bin instead of openssl.

whoami - fakeFaceTrueSoul
  • 17,086
  • 6
  • 32
  • 46
  • Note that newer versions of openssl may not support older algorithms, such as (oddly in 2022) the version required to convert GoDaddy certs to the pfx file type required by Azure Web Apps. If you get an error with the term "unsupported" you may find luck by using an older release of your linux distro. – beep_check Jul 17 '22 at 02:01
1

This question is, I think, better suited to superuser. A PFX file is just a pkcs12 file, and the openssl pkcs12 utility can be used to parse it. Experiment with the options to get the output you're looking for.

Community
  • 1
  • 1
President James K. Polk
  • 40,516
  • 21
  • 95
  • 125