Skip to content

Commit 4681d32

Browse files
authored
CM-47698 - Fix Windows signing of CLI executable (#300)
1 parent a1c7a4f commit 4681d32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build_executable.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ jobs:
166166
shell: cmd
167167
env:
168168
SM_HOST: ${{ secrets.SM_HOST }}
169+
SM_KEYPAIR_ALIAS: ${{ secrets.SM_KEYPAIR_ALIAS }}
169170
SM_API_KEY: ${{ secrets.SM_API_KEY }}
170171
SM_CLIENT_CERT_PASSWORD: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
171172
SM_CODE_SIGNING_CERT_SHA1_HASH: ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}
@@ -174,7 +175,7 @@ jobs:
174175
curl -X GET https://one.digicert.com/signingmanager/api-ui/v1/releases/smtools-windows-x64.msi/download -H "x-api-key:%SM_API_KEY%" -o smtools-windows-x64.msi
175176
msiexec /i smtools-windows-x64.msi /quiet /qn
176177
C:\Windows\System32\certutil.exe -csp "DigiCert Signing Manager KSP" -key -user
177-
smksp_cert_sync.exe
178+
smctl windows certsync --keypair-alias=%SM_KEYPAIR_ALIAS%
178179
179180
:: sign executable
180181
signtool.exe sign /sha1 %SM_CODE_SIGNING_CERT_SHA1_HASH% /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 ".\dist\cycode-cli.exe"

0 commit comments

Comments
 (0)