开发者

Excel 2003 digital signature on VBA project

开发者 https://www.devze.com 2023-03-20 14:34 出处:网络
I have a macro project that will be sent to users that require High Macro security. If I use the self-signed certificate, I am able to sign my code, but it is not a trusted cert.

I have a macro project that will be sent to users that require High Macro security. If I use the self-signed certificate, I am able to sign my code, but it is not a trusted cert.

I requested and received an enterprise certificate from our security team, but when I try to sign the code, I receive an error that states

'There was a problem with the digital certificate. The VBA project could not be signed. The signature will be discarded.'

开发者_开发问答

The cert request was generated from IIS, since that is the only way anyone around knows how to generate the enterprise level certs. My guess is that since I don't own the private key associated with the cert, Excel is rejecting it.

Any suggestions?


i've been dealing with the same problem for 4 days, I tried to do my own CA with openssl and the makecert.exe tool, but nothing worked, util i realize that i didnt installed my certificate with the private key!!!..

talk with the ISS team and ask them to give you the private key generated for your certificate...

or you can try to make one: http://www.digitallycreated.net/Blog/38/using-makecert-to-create-certificates-for-development (quick tip.. include -eku 1.3.6.1.5.5.7.3.3 while you are creating your certificate) remember to do the last part "pvk2pfx".

best regards


First of all, yes, you need a private key of the certificate in order to sign anything.

Then, the certificate must include certain flags in Key usage and Extended Key Usage extensions.

And the last (but probably the most important) is that the certificate or its CA certificate should be trusted by the application that verifies the signature.

To make the story shorter, purchasing a certificate from one of known CAs (eg. GlobalSign) is the best option.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号