Results 1 to 7 of 7
  1. #1
    JezPerth is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2013
    Posts
    5

    MS Access 2010 bug regarding handling of digital certificates?

    The issue: using MS Access 2010 to compile a digitally signed 2002/2003 format mdb to an mde file results in the certificate not being recognised when than mde is subsequently opened.
    To replicate this issue:

    Step 1
    (I did this on a Windows 7 computer - because that's where I have Access 2003 installed).
    In Access 2003 create a 2002/2003 format mdb file.
    Create one form and give it a Close button which has DoCmd.Quit in VBA behind the button.
    Create AutoExec macro to open the form.
    Open VBA window and attach digital certificate.
    Compile it to an mde file.
    The following steps were done on a Windows 8 computer (because that's where I have Access 2010 installed).

    Step 2
    Open the above mde file (from a folder which is NOT a Trusted Location) in Access 2010 and let AutoExec run.
    The Security Notice is displayed - with a button giving an option to trust the publisher. Click this button.
    The mde file opens and can be used.
    Close the mde file.
    Again open the mde file with Access 2010 and let AutoExec run. The digital certificate has been lodged so this time the Security Notice is not displayed.

    Step 3
    Open the same mdb file with Access 2010 (or create a new 2002/2003 format mdb file).
    (From this point I'll refer to this as Mdb2 in case you created a new file).
    Confirm that the certificate is still attached (or attach it if you've created a new mdb file).
    Compile it to an mde file. (I'll refer to this as Mde2).

    Step 4
    Open Mde2 (from a folder which is NOT a Trusted Location) in Access 2010 and let AutoExec run.
    Irrespective of whether the Trusted Publisher setting (created at Step 2) exists, the Security Notice is displayed and it has no option to trust the publisher.
    i.e. It appears that the presence of a digital certificate has not been recognised.

    Step 5
    Set the folder which holds Mde2 as a Trusted Location under Access 2010.
    Open Mde2 under Access 2010 and let AutoExec run.
    The Security Notice is NOT displayed.

    Step 6
    Open Mdb2 under Access2010 (bypassing AutoExec).
    With the VBA window open remove the digital certificate.
    Compile the mdb to an mde (in the same folder as Mde2). I'll refer to this as Mde3.
    Note that the folder is still set as a Trusted Location.
    Open Mde3 under Access 2010 and let AutoExec run.
    The Security Notice is NOT displayed.
    i.e. The fact that the folder is a Trusted Location was sufficient to prevent the Security Notice being displayed. It was not necessary to also have a digital certificate.
    ---------------------
    This Microsoft website clearly indicates that MS Access 2010 can be used to apply a digital certificate to an mdb file via the option under Tools in the VBA window (which is exactly what I've been doing):
    http://office.microsoft.com/en-au/ac...010342008.aspx
    (Scroll down to the section headed "Digitally sign an earlier version database" .. and the "Code sign a database" section which follows).
    My testing above demonstrates that, when opening an mde in Access 2010:
    1. If a certificate is recognised (because the mde was created in Access 2003), and a setting exists to say the publisher is trusted, then NO Security Notice gets displayed.
    2. If there is NO certificate, or if the certificate is not recognised (because the mde was created in Access 2010), but a setting exists to say that the folder holding the mde is a Trusted Location, then NO Security Notice gets displayed.
    ---------------------
    Why do I think there's a bug?
    1. I've been successfully digitally signing mdbs and deploying mdes using MS Access 2003.
    2. If the mde is created with Access 2003 the certificate is recognised when the mde is opened in Access 2010.
    3. The Microsoft website confirms that I'm following the correct procedure to digitally sign an mdb file using MS Access 2010.
    4. If MS Access 2010 is used to compile a digitally signed 2002/2003 format mdb to an mde file the certificate is not recognised when than mde is subsequently opened.

    The only other possibility I can think of is that there is an issue with the digital certificate. But, if that was the case, surely Access 2010 would object at the time the certificate is attached.

    ---------------------
    3 Oct 2013 .. Additional information:
    I have now, on Windows 7 computer:
    - Installed Access 2010.
    - Opened the 2002/2003 format mdb file in Access 2010.


    - Assigned the certificate to the mdb.
    - Compiled the mdb to mde.
    - Opened the mde (and allowed AutoExec to run) .. and I get the same Security Notice with NO option to trust the publisher.
    I also opened the above mde (created on the Win 7 computer) under Access 2010 on the Win 8 computer .. and again I get the same Security Notice with NO option to trust the publisher.

    So the issue has nothing to do with the version of Windows that Access 2010 is installed on.

    Which brings us back to:
    - Is it a problem with Access 2010 itself?
    - Is it a problem with the certificate when used under Access 2010?

    The certificate is one issued by a certification authority. (i.e. it is not self issued).
    Last edited by JezPerth; 10-02-2013 at 10:49 PM. Reason: additional info

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Do you have a license to issue certificates? If not, the certificate you assigned to your .MBE should only work on one CPU.

  3. #3
    JezPerth is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2013
    Posts
    5
    Quote Originally Posted by ItsMe View Post
    Do you have a license to issue certificates? If not, the certificate you assigned to your .MBE should only work on one CPU.
    It is a commercial certificate from GlobalSign, not a self-issued one.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Indeed this is buggy.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I stumbled across some information while I was researching another topic. It is recommended that you create an executable using the same version of Access the client will use. I don't know what happens or does not happen if you go against the recommendation. When I stumbled upon it I remembered this thread. FWIW

  6. #6
    JezPerth is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Apr 2013
    Posts
    5
    I received the following workaround from Microsoft:

    "The workaround is to open the MDE(skipping the startup code), and press Alt-F11 to open the VBA window, and re-add the certificate. After that, when I open the MDE in the normal way, I can click "Trust this publisher" and next time it will run without popping up any security warnings."

    When I asked for confirmation that this was recognised as a bug I received this:

    "Yes, I have checked our internal resources, and this is really reported as a bug since Access 2007."

  7. #7
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Thanks for the update. This is good info here

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Digital Ink field
    By jocares in forum Forms
    Replies: 3
    Last Post: 03-03-2016, 06:49 AM
  2. Digital signatures and security info
    By Madmax in forum Security
    Replies: 3
    Last Post: 07-06-2011, 11:37 AM
  3. Digital signature
    By NISMOJim in forum Access
    Replies: 2
    Last Post: 02-14-2011, 07:59 PM
  4. Format date for Certificates
    By fdnyfish in forum Reports
    Replies: 2
    Last Post: 12-15-2010, 08:37 AM
  5. Replies: 0
    Last Post: 04-24-2009, 12:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums