I am trying to find out if there is a possibility to sign executables produced by the Go compiler. I cannot see this in the build/compile options. Is this even possible?
Signing an executable is not the responsibility of the compiler, but it is part of the build process. Change your build script to run signtool.exe
after the Go compiler has generated your EXE or DLL file. Provide the path and password to the private key file (if using a .pfx
file) and it will sign it for you. This is the same process that Visual Studio uses.
https://docs.microsoft.com/en-us/windows/desktop/seccrypto/signtool
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.