Here's the documentation article for SignTool: SignTool.
I'm not really sure where should I specify the SignTool parameters and special sequences. Is it in the [Setup] section or in the compiler IDE (via the Tools | Configure Sign Tools... menu) or both? If I have specified all the parameters in the compiler IDE, do I have to do that again in the [Setup] section? Also, I don't really understand this part:
byparam=$p
Note: for security reasons you should give a unique name to any Sign Tool set to $p, and not use a byparam name copied from this example. Consider what happens if you #include a third-party file that says:
[Setup] SignTool=byparam format c:
How does that $p sequence really work here?