I created 2 self signed certificates:
- A root certificate:
MyRootCA
self-signed - A code signing certificate:
MyCodeSign
signed byMyRootCA
Now I add MyRootCA
to the Trusted Publishers in Excel's Trust Center and sign my VBA code with MyCodeSign
(which is not added to the Trust Center).
Now I believe, that because I trusted the MyRootCA
which signed MyCodeSign
, that Excel should trust also all MyCodeSign
-signed code (chain of trust). But it doesn't. Only if I add the MyCodeSign
to the Trust Center my code is trusted.
Does anyone have an idea where I'm thinking wrong? Or does Excel just not trust child-signed code if its parent certificate is trusted?
So below you see A
is MyRootCA
and B
is MyCodeSign
issued by A
:
Now I think that when I trust A
in the Trust Center, that all code signed with B
should be trusted too. But Excel still asks for trusting/enable macros.
So perhaps someone can confirm that issue (so I know it's not my fault) or disprove it?
I'm working on the latest version of Office 2016 x64 Edition. If that matters.
(Sorry for the German screenshots)