Using powershell, how do I extract the thumbprint from an SSL Certificate without installing it?
Get an object in Powershell-3.0 and later, which can then be used with Select
and other property accessors:
Get-PfxCertificate -FilePath Certificate.pfx
Alternatively, one can use openssl
from msys or cygwin. However, this is tricky since it's one of those *nix programs that spews all the useful info to stderr, which gets handled badly in powershell.
openssl pkcs12 -info -in Certificate.pfx
Note: Both of these methods require the user to input the password. I've yet to find a fully automated way to do this without manually entering the password each time.