-
Notifications
You must be signed in to change notification settings - Fork 8
Signing using standard Signtool is also possible #8
Comments
Hi @tomasszabo. The error given out by the signing process looks like a bitness problem happening inside the SignerSignEx2 call. Could you provide more information about the configuration of the system you were running on and the app bundle? What Windows version and bitness is it? What is the bitness of the app bundle? I also noticed you are using an explicitly specified MSSign32.dll path, was the tool not able to pick up the library automatically? Regarding the usage of signtool, that is actually pretty cool, I'll need to take a look at that. As said in the SO post, this capability is not advertised (or didn't use to be). Thanks for letting me know! |
Windows:
The tool was able to find MSSign32.dll but for testing I've explicitly set it to specific version. Result from signing attempt with what the tool found automatically was also I've tried all combinations:
I'm not sure what is |
Absolutely beautiful! Thank you. No idea what some of these parameters are (mainly container and provider), but once I found similarly named properties in Safenet I was able to get this to work... I failed to get it to work by reading the original referenced stackoverflow thread. I do have worries that this will not gain the full benefits of the EV license, but I really suspect that's because I lack some knowledge on these issues and I'm just being paranoid. Here is my version, only real change is adding the timestamp server:
Question: Since the cert is exported and I can send it a password with the above command to sign certs, is it also true that now I can use and/or install this cert on multiple computers for signing? I could theoretically throw out the physical token at this point? Heck, I could even put the cert and signtool.exe directly in our installer builder code on github and it could theoretically work independantly from anywhere without setup! Correct me if I'm wrong... that's what we were doing before we had to switch to EV and it was ideal. Man, I bet I don't even need that stupid safenet software anymore. Looks like safenet and the dongle are still required =(... still one problem solved, thanks! |
I finally got around to testing the signtool approach and it works as advertised. Thanks for pointing me in this direction. Since the situation that originally prompted me to write this piece of code is now resolved in a using semi-official and better way, I'm archiving this repo. Thanks for playing 👍 |
I was struggling with this problem for past few days. Unfortunately, tool in this repository was not working in my case due to:
However I've found another solution which is working for me:
https://stackoverflow.com/questions/17927895/automate-extended-validation-ev-code-signing/54439759#54439759
and according to mentioned Stackoverflow, I was able to sign appxbundle using standard Signtool:
For troubleshooting of Signtool (because it is also not working out-of-the-box), read Microsoft's documentation:
https://docs.microsoft.com/en-us/windows/msix/package/sign-app-package-using-signtool
I'm not sure if this should be a bug report but at least I wanted to inform you that there is also "standard" way and custom tools are not necessary. Also if someone else is searching for solution, this could help them.
The text was updated successfully, but these errors were encountered: