Get pfx certificate information.
Pfx = Personal Information Exchange, each .pfx file includes both a certificate and a private key.
Syntax
Get-PfxCertificate [-filePath] string[] [CommonParameters]
Key
-filePath
The full path to the .pfx file of the secured file. (may be piped)
CommonParameters:
-Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.
Examples
Get information about the ss64.pfx certificate:
PS C:\>get-pfxcertificate -filepath C:\windows\system32\ss64.pfx
"Those were the days when men were real men, when women were real women, when small, blue, fuzzy creatures from Alpha Centauri were real small, blue, fuzzy creatures from Alpha Centauri" - Douglas Adams
Related:
Get-AuthenticodeSignature - Get the signature object associated with a file
Set-AuthenticodeSignature - Place a signature in a .ps1 script or other file
About_Signing
Pvk2pfx.exe - SDK tool to copy public/private key information from .spc, .cer, and .pvk files to a .pfx file.
Equivalent bash commands:
build-ca (Easy RSA)