Should fix password issue

This commit is contained in:
Robin 2016-08-15 18:27:04 +02:00
commit 544e8e92e2

View file

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