Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Excel don't accept macro signature

$
0
0

I tried to sign an excel macro. But it doesn`t work.

I've created a Root CA and a code sign cert with the help of this "tutorial": 

https://stackoverflow.com/questions/84847/how-do-i-create-a-self-signed-certificate-for-code-signing-on-windows

Now I have added the Root CA to the trusted root authorities on my development PC. Then I did the following steps to sign my macro:
1.) Open the file that contains the macro project that you want to sign.
2.) On the Developer tab, in the Code group, click Visual Basic.
3.) In Visual Basic, on the Tools menu, click Digital Signature.
4.) The Digital Signature dialog appears.
5.) Select a certificate and click OK.

On my development PC everything works well. Now I added the Root CA to the trusted root authorities on an other PC. Windows says that the Root CA and the code sign cert are valid and trusted. So everything seems fine.

Then I tried to open the excel file. Excel says that the macros can`t be loaded because the code sign cert is untrusted. Then I click the "show certificate" button windows says that the cert ist valid again.

What did I wrong? How can I get it to work? Thanks

PS: Office Version 2010 and Win 7


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>