+ Reply to Thread
Results 1 to 5 of 5

Digitally signing xlsm file - can't get Excel to recognise certificate.

  1. #1
    Registered User
    Join Date
    08-01-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    76

    Digitally signing xlsm file - can't get Excel to recognise certificate.

    I am writing macros in excel (and word) for a small organisation. They will only ever be used internally. I want to be able to run my macros on all machines on the local area network without the various warnings popping up from Microsoft about macros being disabled, etc.

    In order to retain protection, in Macro Security I want to set the macro settings to "Disable all macros except digitally signed macros", and then I want to sign the documents that I produce with a code signing certificate.

    This is where the trouble begins ... we are a small not-for-profit organisation, and we are damned if we are going to pay huge amounts of money each year to one of the only three certificate vendors that Microsoft recognize - two of which are subsidiaries of Microsoft anyway (a.k.a. a greedy monopoly) - in order to get a code signing certificate.

    So, my plan is this - create my own code signing certificate, export as both the public and private parts. Then sign the xlsm (and docm) files with the private key certificate and install the public key certificate on all machines in the network so that we don't get errors popping up about my macros.

    All well and good, you might think. Indeed, I found the following online guide, written by someone who wanted to do what I want to do, and for much the same reason: http://www.vbforums.com/showthread.p...g-certificates

    So I followed his instructions, and now I have my two files (let's call them XmisterIS.cer - the public key part and XmisterIS.pfx - the private key part).

    BUT ... when I go to Tools > Digital Signature > Choose in the Visual Basic window for the project, a box pops up saying "no certificate available". So ... where do I need to (a) put the .pfx file so I can sign the document with it and (b) put the .cer file so that Excel can verify the signature?

    I get the feeling that I am "close, but no cigar" ...

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Digitally signing xlsm file - can't get Excel to recognise certificate.

    That article is for VB not VBA. This one is probably more useful: http://www.wiseowl.co.uk/blog/s240/d...for_macros.htm

    Note the section at the bottom, which basically says you're out of luck.
    Last edited by romperstomper; 05-21-2014 at 09:04 AM.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    08-01-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Digitally signing xlsm file - can't get Excel to recognise certificate.

    Microsoft have got it all rather nicely wrapped up, then ...

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Digitally signing xlsm file - can't get Excel to recognise certificate.

    It does seem so. I know the self certificates used to work pre 2007, but I haven't had any need to look into it recently. It may be that there is a workaround - I will see if I can find one.

  5. #5
    Registered User
    Join Date
    08-01-2009
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Digitally signing xlsm file - can't get Excel to recognise certificate.

    That would be much appreciated ... I've spent a good while looking today and put it to bed for the moment.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Digitally signing Excel worksheets
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2013, 10:35 PM
  2. Replies: 0
    Last Post: 05-23-2012, 02:40 PM
  3. Name truncated in digitally signing?
    By c mateland in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2006, 03:10 PM
  4. Digitally signing Macros
    By mikepalm in forum Excel General
    Replies: 1
    Last Post: 01-11-2006, 02:10 PM
  5. digitally signing excel doc
    By Gixxer_J_97 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2005, 09:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1