Found that pw was double encrypted

This commit is contained in:
Robin 2016-08-15 21:59:18 +02:00
parent b8e6cdfb60
commit 82ea01814b

View file

@ -47,3 +47,9 @@ FillCredentials
# Write the certificate to a file
[System.Convert]::FromBase64String($env:Certificate) | set-content "greenshot.pfx" -encoding byte
# Import it
Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:CertificatePassword
# Alternative
# $certutilArguments = @('-f','-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx")
# Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow