Internally many developers work on customized word templates. When we ship the code, we would like to add digital signatures (pfx) to the vb code or to the dotm templates. Ideally, we would like to add this step to the build script. Signcode/Signtool do not sign dotm file types. I am wondering if there are other alternatives. Currently I am considering this System.IO.Packaging.PackageDigitalSignatureManager and this Set-AuthenticodeSignature, hoping they can be modified to support dotm files.
Since, dotm files can be signed via VB, I assume they can be digitally signed. Is there any way to automate the signing of digital signatures for dotm files?
(I've read this and related SO questions, hoping there are other solutions.)
You can use the signtool to sign .dotm if you install Microsoft Office Subject Interface Packages for Digitally Signing VBA Projects.
(See also: Is it possible to sign a Excel VBA project including timestamp?)