What's the quickest way on a Windows machine to look at the detail of a p12 certificate?
Given P12 certificate file on Windows, what's the quickest way to see the details such as common name?
Say i have a file mycertificate.p12
, ideally I'm looking for a command line tool that I can run against the file to show me the details and doesn't require anything extra to be installed.
It looks like openssl has something similar:
openssl pkcs12 -in file.p12 -info -noout
I think the simplest way is probably this:
- Open a new command window
- Type
certutil -dump <certificate full path>
The certutil tool is built in to Windows so you don't need anything to be installed.
Edit:
As Iain mentioned, since the file can contain a private key you may be prompted for a password. It's possible to specify the password when you run the command, which would have the advantage of allowing you to use command redirection to send the output directly to a text file:
e.g.
certutil -p MyPassword -dump D:\MyCertificate.p12 > D:\CertDetails.txt