Another try...

This commit is contained in:
Robin 2016-08-15 18:31:16 +02:00
commit 9153a0baf5

View file

@ -58,7 +58,7 @@ Function PrepareCertificate() {
#$certutilArguments = @('-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx")
#Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow
$psw = ConvertTo-SecureString $env:CertificatePassword -AsPlainText -Force
Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:psw
Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password "$psw"
}
# Sign the specify file