diff --git a/build.ps1 b/build.ps1 index 6c3ed8723..fc2767cc5 100644 --- a/build.ps1 +++ b/build.ps1 @@ -57,7 +57,7 @@ Function PrepareCertificate() { $decodedContentBytes | set-content "greenshot.pfx" -encoding byte #$certutilArguments = @('-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx") #Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow - $psw = ConvertTo-SecureString $env:CertificatePassword -AsPlainText + $psw = ConvertTo-SecureString $env:CertificatePassword -AsPlainText -Force Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:psw }