mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Added wrong command, commented this out for now.
This commit is contained in:
parent
aa9cad2588
commit
3297c1ad7f
1 changed files with 2 additions and 3 deletions
|
@ -55,11 +55,10 @@ Function MD5($filename) {
|
||||||
Function PrepareCertificate() {
|
Function PrepareCertificate() {
|
||||||
$decodedContentBytes = [System.Convert]::FromBase64String($env:Certificate)
|
$decodedContentBytes = [System.Convert]::FromBase64String($env:Certificate)
|
||||||
$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")
|
||||||
Import-PfxCertificate –FilePath C:\mypfx.pfx cert:\localMachine\my -Password $env:CertificatePassword
|
|
||||||
|
|
||||||
Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow
|
Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow
|
||||||
|
|
||||||
|
#Import-PfxCertificate –FilePath "greenshot.pfx" "cert:\localMachine\my" -Password "$env:CertificatePassword"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sign the specify file
|
# Sign the specify file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue