File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,31 @@ jobs:
222222 jq --arg thumbprint "$THUMBPRINT" '.bundle.windows.certificateThumbprint = $thumbprint' "$CONFIG_PATH" > tmp.$$ && mv tmp.$$ "$CONFIG_PATH"
223223
224224 echo "Certificate thumbprint configured: $THUMBPRINT"
225+
226+ - name : Diagnose cert store after SimplySign login (Windows)
227+ if : matrix.platform == 'windows'
228+ shell : pwsh
229+ run : |
230+ Start-Sleep -Seconds 60 # Wait for cert store to update
231+ Write-Host "=== WHOAMI ==="
232+ whoami
233+
234+ Write-Host "=== LIST CurrentUser\\My ==="
235+ certutil -user -store My
236+
237+ Write-Host "=== LIST LocalMachine\\My ==="
238+ certutil -store My
239+
240+ Write-Host "=== FILTER BY THUMBPRINT (if provided) ==="
241+ $tp = "${{ secrets.CERTUM_CERTIFICATE_SHA1 }}".Replace(" ", "").ToUpper()
242+ if ($tp) {
243+ $hit = Get-ChildItem Cert:\CurrentUser\My | Where-Object { $_.Thumbprint -eq $tp }
244+ if ($hit) {
245+ $hit | Format-List Subject, Thumbprint, NotAfter, HasPrivateKey
246+ } else {
247+ Write-Host "NOT FOUND in CurrentUser\\My: $tp"
248+ }
249+ }
225250
226251 - name : Build the app
227252 if : matrix.platform == 'windows' || matrix.platform == 'linux'
You can’t perform that action at this time.
0 commit comments