another try

This commit is contained in:
Robin 2016-08-15 18:29:24 +02:00
commit fd327aabe7

View file

@ -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
}