Skip to content

Instantly share code, notes, and snippets.

@AliceWaddicor
Created April 1, 2015 08:08
Show Gist options
  • Save AliceWaddicor/2f09c682e3457dd7a9ab to your computer and use it in GitHub Desktop.
Save AliceWaddicor/2f09c682e3457dd7a9ab to your computer and use it in GitHub Desktop.
Generate pfx file
$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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment