Programmatically Creating and Signing Word Documents

I got asked by a customer how to generate and sign Word Documents programmatically. I couldn't find a good example, so I wrote them one: https://github.com/coatsy/SignWordDoc.

In summary, the architecture looks like this:

Details are in the Github Repo