Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Summary
Matrix workflow win-exe.yml does not complete
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
What software is involved?
- Operating System: GitHub runner-images windows-latest & windows-11-arm
Volume Type
None
Steps to Reproduce
- Create a test certificate and include it into the matrix workflow, see purejava@017ff5e
- Create a new release on GitHub to trigger the win-exe.yml workflow
- See is fail in the Codesign step
Expected Behavior
skymatic_code-sign-action should work architecture independently
Actual Behavior
The workflow stops at step Codesign with an error.
Reproducibility
Always
Relevant Log Output
Signing appdir/Cryptomator/Cryptomator.exe.
Signing command: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/signtool.exe" sign /sm /tr http://timestamp.digi***.com/ /td SHA256 /fd SHA256 /sha1 "014c779e55f7c6c67791a6b97c183b87ca386a23" /d "Cryptomator" appdir/Cryptomator/Cryptomator.exe
Done Adding Additional Store
Number of errors: 1
Process to sign file exited with code 1.
SignTool Error: SignedCode::Sign returned error: 0x800700C1
For more information, please see https://aka.ms/badexeformat
SignTool Error: An error occurred while attempting to sign: appdir/Cryptomator/Cryptomator.exe
Error: Error: Command failed: "C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/signtool.exe" sign /sm /tr http://timestamp.digi***.com/ /td SHA256 /fd SHA256 /sha1 "014c779e55f7c6c67791a6b97c183b87ca386a23" /d "Cryptomator" appdir/Cryptomator/Cryptomator.exe
SignTool Error: SignedCode::Sign returned error: 0x800700C1
For more information, please see https://aka.ms/badexeformat
SignTool Error: An error occurred while attempting to sign: appdir/Cryptomator/Cryptomator.exeAnything else?
The certificate is fine. It works with x64, see: https://github.com/purejava/cryptomator/actions/runs/14570009330/job/40865428994
Nevertheless, zulu does not contain a Java variant that runs on ARM64, so temurin was choosen to build the installers for ARM64.
Edit: The content of this issue was changed, as further tests revealed that it was not the change to temurin, that broke Codesign, but the code sign action does not work on ARM64
Activity
[-]Codesign fails with Java temurin[/-][+]Codesign fails due to skymatic_code-sign-action not being compatible with ARM64[/+]infeo commentedon Apr 21, 2025
This cannot be changed due to signing issues. (as seen in the build log by the failed signing tool)
Already known since #3693
The assumption is that we are signing an already signed file. It might work if we remove the signature before Hand with
signtool remove /s C:\path\to.exe.or.dllpurejava commentedon Apr 22, 2025
Thanks @infeo for pointing me to the origin of this, the explanation and the potential way to get this to work.
purejava commentedon Apr 24, 2025
Ok, first, I re-checked with signtool, which dll and exe files in appdir are signed:
Then I removed the signature from
wixhelper.dll- see below - but the following Codesign step failed with the same error as before.Removing all signatures:
unfortunately does not help either. The error stays exactly the same.
We'll have to look further.
purejava commentedon Apr 24, 2025
For
zuluit looks like this:Differences, compared to temurin, are:
purejava commentedon Apr 25, 2025
I did approach the problem from a different direction and downloaded the two created
Cryptomator.exefiles created bytemurinandzulu.Feeeding them alone (no other dll or exe involved) to the signtool shows:
Temurin:
Zulu:
So it's the exe itself, created by
jpackage, that has a problem.Googling with this knowledge, I found this: it's a know bug, but not yet fixed by
temurin:adoptium/adoptium-support#1244
https://bugs.openjdk.org/browse/JDK-8326447
infeo commentedon Sep 1, 2026
We don't use our custom codes sign action anymore, see #4038 and #4169.