From 82ea01814b5e1ae9b7054f784b8c411fceabbe0a Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 15 Aug 2016 21:59:18 +0200 Subject: [PATCH] Found that pw was double encrypted --- prebuild.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prebuild.ps1 b/prebuild.ps1 index 8e9161b19..920077f62 100644 --- a/prebuild.ps1 +++ b/prebuild.ps1 @@ -47,3 +47,9 @@ FillCredentials # Write the certificate to a file [System.Convert]::FromBase64String($env:Certificate) | set-content "greenshot.pfx" -encoding byte +# Import it +Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:CertificatePassword + +# Alternative +# $certutilArguments = @('-f','-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx") +# Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow