473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Digital Signature fails when file extension is not .mdb

We are using some Access databases in v2003 format where the file extension is not the default .mdb. We've customized the extension and have registered that with Access so it will open when double-clicked. However, whenever I try to digitally sign the file the VBA editor fails with the message:
"There was a problem with the digital certificate. The VBA project could not be signed. The signature will be discarded."

However, there is nothing wrong with the digital cert because I can use it within my enterprise to sign everything else from email to other VBA projects. It only fails with when the file is a custom extension. If I rename the exact same file to .mdb it'll work.

Anyone know why this happens? And more importantly, is there anyway around it?
Dec 3 '12 #1
5 2833
NeoPa
32,556 Expert Mod 16PB
I don't. Very interesting point.

I have used certs extensively myself (See Code Signing), but never with alternative extensions.

Why not try developing the db as an MDB but converting to the new extension at the point of release to the users?
Dec 3 '12 #2
Thanks for the reply. We've actually already done what you suggested. The file is developed using .mdb, then saved as a different extension when it goes out to users. So when we go to sign right before distribution it'll fail to sign. I can even sign it successfully while it's still an .mdb, then rename the extension. But when you open it while it's got the other extension Access completely ignores the signature and pretends like it isn't even there (i.e. prompt for enable macros). If the user renames the signed file back to .mdb, then the signature "magically" starts working again.

Very strange and definitely unexpected behavior. Makes me think that the external libraries that MS Office is using to digitally sign and verify signatures are somehow coded to only look at file extensions rather than actual file types.

I suspect it'll be quite difficult or impossible to fix or work around but wanted to ask other more seasoned experts before we decided what action to take.
Dec 3 '12 #3
NeoPa
32,556 Expert Mod 16PB
Argonautical:
I can even sign it successfully while it's still an .mdb, then rename the extension.
I'm glad you got to that bit Argo, as that was my suggestion. It was worth a try, but I must admit I would have been surprised if you hadn't thought of that already somehow.

I think you're right in saying that MS have implemented this poorly. Even with ACCDB files in 2007 and 2010 it's become extraordinarily fiddly and complicated to use signed projects. Not being able to use them at all without the standard extension though, is not very impressive on their part I would suggest.
Dec 4 '12 #4
Thanks again for the input and confirmation. I think we're gonna stop spending time pursuing this specific problem and approach it from another angle.
Dec 4 '12 #5
NeoPa
32,556 Expert Mod 16PB
Seems sensible. Sorry I couldn't help more. It's an area I'd love to see taken up more, but MS have made it so difficult to use that it's a very hard sell on my part.
Dec 5 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kim H Madsen | last post by:
I have created a .Net Service that is sending mails using SMTP Server/Exchange Server how do i put in a Digital Signature so the reciver is 100% sure that the mail i from the owner of Server where...
0
by: CLarkou | last post by:
I bought a digital signature for my MSaccess application in Office 2003. I select TOOLS\Digital Signatures in Visual Basic Editor and I am not able to see my digital signature in the available...
1
by: Thor_MN | last post by:
Has anyone run into this problem? I have a database that is used to create reports from one of three different "company/division" SQL Server databases. The startup form allows the user to pick...
1
by: Marco Moioli | last post by:
Hi, I have a problem with a X509 digital signature. I want to sign a Word 2003 document saved in .xml format. the problem is that after the signature, Word 2003 don't want to open the document. ...
0
by: PamelaDV | last post by:
I have an application that I have been working with for some time. When I am ready to release the application to the users I use the Custom Startup Wizard and I add a digital certificate to the...
1
by: Filips Benoit | last post by:
Dear All, From a Access 2000 Database the Labo analyses are exported in a xls-files and send to the customer as email-attachment. It is all done by code in 1 cmd.: 1. Creating a xls-file from a...
0
by: =?Utf-8?B?S29saW4=?= | last post by:
Hi There, I am a newbe to web services and WSE 3.0. I am connecting to a remote web service using Web Proxy and the remote service required the soap message to be digitaly signed(X509...
0
by: shwetamodi | last post by:
Hello everyone, I am working on an ASP.Net Project and i have used digital signature in my project and it is working perfectly fine in my system but when i run it on IIS server then my...
3
by: hdsingh71 | last post by:
We have two files, one is plain text another is signature file. We have to verify the integrity of the message. The details of SIG file is as under: Digital signature in PKCS7 format ...
3
by: tmoloy | last post by:
I am using RFID tags to store some data which will then be read by a 3rd party. I need to include a digital signature (or some variation) along with the data so that the 3rd party can verify the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.