osslsigncode

Sign PE/MSI/Java CAB files with Authenticode signatures using OpenSSL

brewmacoslinux
Try with needOr install directly
Source

About

OpenSSL based Authenticode signing for PE/MSI/Java CAB files

Commands

osslsigncode

Examples

Sign a Windows PE executable with a certificate and private key$ osslsigncode sign -pkcs12 certificate.pfx -pass password -in unsigned.exe -out signed.exe
Sign an MSI installer file$ osslsigncode sign -pkcs12 cert.p12 -pass mypass -in installer.msi -out installer_signed.msi
Verify the signature on a signed executable$ osslsigncode verify -in signed.exe