How do I view the contents of a PFX file on Windows?

127

18

I have a PFX certificate file on my machine and I'd like to view the details before importing it. (The import utility doesn't actually tell you what the certificate is!).

How do I view the details about the PFX certificate file?

PeterX

Posted 2013-04-10T04:59:30.763

Reputation: 3 691

It is 2019 and we still can't easily view a certificate before installing it. We have to go out on the web to find an answer. Sad state of affairs for Microsoft. – jww – 2019-09-15T00:24:43.737

Answers

177

Some options to view PFX file details:

  • Open a command prompt and type: certutil -dump <path to cert>
  • Install OpenSSL and use the commands to view the details, such as: openssl pkcs12 -info -in <path to cert>

PeterX

Posted 2013-04-10T04:59:30.763

Reputation: 3 691

The first option is good, but is there any way of seeing more details of the certificate such as the SAN, without installing a third party tool? – Meir – 2016-08-17T08:41:53.163

14certutil -v -dump <path to cert> will display a verbose listing including SAN. – C. Cornwell – 2017-01-05T22:37:43.733

1I have an encrypted pfx file. Is there any information I can find out about it without knowing the password? – mwfearnley – 2017-04-21T14:22:51.640

@mwfearnley, except of recovering the password via brute-force method, I am afraid there is no other option left. – U880D – 2018-04-17T08:59:00.870

6

You can pipe the info to the openssl x509 utility and then export that out to a file like this:

openssl.exe pkcs12 -info -in c:\temp\cert.pfx | openssl.exe x509 -noout -text > c:\temp\cert.pfx.details.txt

You will be prompted for the certificate passwords too of course.

pHarris

Posted 2013-04-10T04:59:30.763

Reputation: 61

0

Another possibility: using SigCheck utility, as mentioned in Microsoft's Clickonce docs (the docs mention examining a .manifest file, but it works on a .pfx file as well).

Outputs looks like:

enter image description here

Veverke

Posted 2013-04-10T04:59:30.763

Reputation: 101