Solved

Code signing a file

Posted on 2004-10-15
3
1,540 Views
Last Modified: 2013-12-03
Hi guys,
I got a digital certificate from Verisign, and now I'm in the process of code signing a few files. I'm trying first with an exe file and I'm a bit desperate. I'm using the signcode tool to do it. This is what I write in a MS-DOS console:
 
signcode /spc C:mycredencials.spc /v a:myprivatekey.pvk /t http://timestamp.verisign.com/scripts/timstamp.dll c:Project1.exe
 
It seems to work alright, because as soon as I execute this line, my PC goes to my A drive and fetches my private key, then a form pops up asking for my private key password (taking care of capital letters and being sure the one I'm typing is the correct password), and signcode replies with:
 
Error: Failed to build the certificate chain as requested
Error: Signing Failed.  Result = 800b010a, (-2146762486)
 
What am I doing wrong here?, do I need any further switch option?, can you please guys help me out?
 
Thanks
0
Comment
Question by:AntoniL
  • 2
3 Comments
 

Author Comment

by:AntoniL
ID: 12320957
Hi again,
I found this article, but it gives no workaround, please take a look ...

http://www.derkeiler.com/Newsgroups/microsoft.public.platformsdk.security/2003-10/0381.html

Any ideas, I'm stuck and spent 400 bucks ... :-(

Cheers
0
 

Author Comment

by:AntoniL
ID: 12383395
Hi again,
I found a solution and it was just a matter of updating my signcode.exe file. The one I had was designed for IE 3.0!!. The new signcode.exe opens up the wizard, which walks you through the signing process.

See you around lads
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12383832
Question answered by asker or dialog valuable.
Closed, 250 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now