Thank you all for this great thread, it was very helpful as I also needed to automate code signing with a YubiKey. In case someone else finds it useful, here's a Linux Docker container project that takes care of all the dependencies, with a web service based on the one suggested in this thread, using osslsigncode, plus HTTPS and basic authentication: