From 77dc96f4bb5e526abd60511c65cfb49609b5747d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Feb 2025 12:42:21 +0000 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/build_windows.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_windows.yaml b/.github/workflows/build_windows.yaml index 22c618e3..2a3ecd99 100644 --- a/.github/workflows/build_windows.yaml +++ b/.github/workflows/build_windows.yaml @@ -177,8 +177,12 @@ jobs: - name: Trust eSigner sandbox cert if: inputs.sign == '' run: | - $Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 (get-item ./dist/win-*unpacked/*.exe) + Set-StrictMode -Version 'Latest' + $Cert = Get-ChildItem Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1 + echo Certificate: $Cert $Chain = New-Object System.Security.Cryptography.X509Certificates.X509Chain + echo Chain: $Chain + echo Root: $Chain.ChainElements[2].Certificate [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