Skip to content

Instantly share code, notes, and snippets.

@PlagueHO
Created January 10, 2017 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlagueHO/d24f6d97554fdcca90c798ce6830ab0e to your computer and use it in GitHub Desktop.
Save PlagueHO/d24f6d97554fdcca90c798ce6830ab0e to your computer and use it in GitHub Desktop.
Read PFX file with PowerShell
$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)
@gudipudipradeep
Copy link

How Can Convert import object to export as cer file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment