From 544e8e92e2d8c4a25fdba1b3d1df8a40683187e2 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 15 Aug 2016 18:27:04 +0200 Subject: [PATCH] Should fix password issue --- build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index f48306e31..6c3ed8723 100644 --- a/build.ps1 +++ b/build.ps1 @@ -57,8 +57,8 @@ Function PrepareCertificate() { $decodedContentBytes | set-content "greenshot.pfx" -encoding byte #$certutilArguments = @('-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx") #Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow - - Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:CertificatePassword + $psw = ConvertTo-SecureString $env:CertificatePassword -AsPlainText + Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:psw } # Sign the specify file