Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 241 Bytes

File metadata and controls

7 lines (6 loc) · 241 Bytes

Extract the Private Key

$pw = ConvertTo-SecureString "password123" -AsPlainText -Force
$certificate = Get-ChildItem -Path cert:\CurrentUser\My\<thumbprint>
Export-PfxCertificate -Cert $certificate -FilePath user.pfx -Password $pw