mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Should fix password issue
This commit is contained in:
parent
c48d5dfc1a
commit
544e8e92e2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue