Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign Windows binaries on Linux host #9406

Open
gudvinr opened this issue Feb 7, 2024 · 0 comments
Open

Sign Windows binaries on Linux host #9406

gudvinr opened this issue Feb 7, 2024 · 0 comments
Labels
build Issues caused by or requiring changes to the build system (scripts or Docker image)

Comments

@gudvinr
Copy link
Contributor

gudvinr commented Feb 7, 2024

Currently, when you cross-compile application for different platform, code sign will fail for GOOS=windows on Linux and Mac because of missing signtool.exe.

Same will happen if you try to compile for GOOS=darwin on Linux and Windows.

However, there is osslsigncode for creating Authenticode signatures, which uses openssl and can be used to sign PE binaries on non-windows hosts.

windowsCodesign then can either check presence of osslsigncode if signtool.exe does not exist or use runtime.GOOS to switch code paths.

@gudvinr gudvinr added enhancement New features or improvements of some kind, as opposed to a problem (bug) needs-triage New issues needed to be validated labels Feb 7, 2024
@calmh calmh added build Issues caused by or requiring changes to the build system (scripts or Docker image) and removed enhancement New features or improvements of some kind, as opposed to a problem (bug) needs-triage New issues needed to be validated labels Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues caused by or requiring changes to the build system (scripts or Docker image)
Projects
None yet
Development

No branches or pull requests

2 participants