You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
Currently, when you cross-compile application for different platform, code sign will fail for
GOOS=windows
on Linux and Mac because of missingsigntool.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 ofosslsigncode
ifsigntool.exe
does not exist or useruntime.GOOS
to switch code paths.The text was updated successfully, but these errors were encountered: