Created
January 10, 2017 07:24
-
-
Save PlagueHO/d24f6d97554fdcca90c798ce6830ab0e to your computer and use it in GitHub Desktop.
Read PFX file with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$PFXPath = 'd:\Cert.pfx' | |
$PFXPassword = 'pass' | |
$PFX = New-Object -TypeName 'System.Security.Cryptography.X509Certificates.X509Certificate2Collection' | |
$PFX.Import($PFXPath,$PFXPassword,[System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::PersistKeySet) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How Can Convert import object to export as cer file