Signing Windows executable file on Linux

Signing Windows executable file on Linux.

If you build windows executables on linux (on Continuous Integration Machine) you must sign them before release.

But there is only tool signcode.exe from Microsoft (part of .NET) that can do it and of course this tool runs on Windows only.

osslsigncode - is open source tool under GPL.

You may download sources from and compile / install on linux you want to run it.
It has very similar syntax and parameters set as signcode.exe

osslsigncode -spc SPC-FILE -key PRIVATE-KEY-FILE -in EXECUTABLE -out OUTFILE