Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2025-02-13 12:12:46 +00:00
parent d20eca274e
commit dcced5ffd6
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D

View File

@ -177,10 +177,10 @@ jobs:
- name: Trust eSigner sandbox cert
if: inputs.sign == ''
run: |
$cert = (Get-AuthenticodeSignature -FilePath (get-item ./dist/win-*unpacked/*.exe)).SignerCertificate
$chain = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Chain
$chain.Build($cert)
$chain.ChainElements[2].Certificate | Export-Certificate -Type CERT -FilePath SSLcom-sandbox-root.crt
$Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 (get-item ./dist/win-*unpacked/*.exe)
$Chain = New-Object System.Security.Cryptography.X509Certificates.X509Chain
[void]$Chain.Build($Cert)
$Chain.ChainElements[2].Certificate | Export-Certificate -Type CERT -FilePath SSLcom-sandbox-root.crt
certutil.exe -addstore root ./SSLcom-sandbox-root.crt
env:
INSTALL_DIR: C:\Users\runneradmin\eSignerCKA