Skip to content

Instantly share code, notes, and snippets.

$MyPwd = ConvertTo-SecureString -String "your password here" -Force –AsPlainText
$AzureCert = Get-ChildItem -Path Cert:\CurrentUser\My | where {$_.Subject -match "your certificate’s name here”}
Export-PfxCertificate -FilePath C:\your certificate’s name here.pfx -Password $MyPwd -Cert $AzureCert