Skip to content

Commit

Permalink
Try removing sectigo's new cert on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock committed Aug 1, 2024
1 parent c0daa22 commit 8849ed0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ jobs:
run: ./build.sh
- if: matrix.runs-on == 'windows-latest' && github.ref != 'refs/heads/main' && !contains(github.ref, 'refs/tags/')
run: ./build.ps1
- if: (matrix.runs-on == 'macOS-latest') && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
- if: (matrix.runs-on == 'windows-latest') && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
env:
SignClientSecret: ${{ secrets.SIGNCLIENTSECRET }}
run: |
./build.sh sign
./remove-sectigo-cert.ps1
./build.ps1 sign
dotnet nuget push .\artifacts\*.nupkg -s https://www.myget.org/F/duende_identityserver/api/v2/package -k ${{ secrets.MYGET }}
11 changes: 11 additions & 0 deletions remove-sectigo-cert.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$certThumbprint = "CCBBF9E1485AF63CE47ABF8E9E648C2504FC319D"
$certStore = New-Object System.Security.Cryptography.X509Certificates.X509Store("Root", "LocalMachine")
$certStore.Open("ReadWrite")
$cert = $certStore.Certificates | Where-Object { $_.Thumbprint -eq $certThumbprint }
if ($cert) {
$certStore.Remove($cert)
Write-Output "Certificate removed successfully."
} else {
Write-Output "Certificate not found."
}
$certStore.Close()

0 comments on commit 8849ed0

Please sign in to comment.