PDA

View Full Version : Digital Signature PITA


lewcamino
14th January 2007, 10:38 AM
I have search for about three hours now. On the forums and google. I can not find a way to make this work. Any help would be much appreciated.

I am simply trying to customize "phcanOverbmp.dll" so that it matches my phone pad skin. I use resource hacker to change the images and when I save the new DLL it looses the digital signature (expected).

I am using signtool.exe from the Visual Studio SDK and the certificates from the WM5 PPC SDK.

I tried wizard mode and I get "The Digital Signature wizard did not complete."

I also ran it via command line with the "/f SDKSamplePrivDeveloper.pfx" switch and I get "SignTool Error: ISignedCode::Sign returned error: 0x80070057"

I have tried "signcode_294" with the .bat file, that gives me "Error: Signing Failed. Result = 80070057, (-2147024809)"

I researched this issue and found that if it is XIP you cant sign it, but this .dll was taken from my device, so it should be PE.

I am really at a loss...

PLEASE help me solve this. There are soooo many things I have customized that I cant use cause of this issue.

Thanks, Lew

levenum
14th January 2007, 11:56 AM
Ok, the problem is you are trying to edit a signed file. This is a big no no!
The thing is signature has a checksum. Once you edit a signed file it automatically becomes invalid so you can't run or resign it.

You need to find a way (sorry, can't help you there) to remove the signature before editing the file.

meschle
14th January 2007, 01:09 PM
I have search for about three hours now. On the forums and google. I can not find a way to make this work. Any help would be much appreciated.

I am simply trying to customize "phcanOverbmp.dll" so that it matches my phone pad skin. I use resource hacker to change the images and when I save the new DLL it looses the digital signature (expected).

I am using signtool.exe from the Visual Studio SDK and the certificates from the WM5 PPC SDK.

I tried wizard mode and I get "The Digital Signature wizard did not complete."

I also ran it via command line with the "/f SDKSamplePrivDeveloper.pfx" switch and I get "SignTool Error: ISignedCode::Sign returned error: 0x80070057"

I have tried "signcode_294" with the .bat file, that gives me "Error: Signing Failed. Result = 80070057, (-2147024809)"

I researched this issue and found that if it is XIP you cant sign it, but this .dll was taken from my device, so it should be PE.

I am really at a loss...

PLEASE help me solve this. There are soooo many things I have customized that I cant use cause of this issue.

Thanks, Lew

If you run the sdk cab before replacing "phcanOverbmp.dll" it will work. It did for the batteryfix project that i helped jimm98y with

download one of his earlier zips that has the file you need in it. Can be combined all in one cab. edit i attached it

see here http://forum.xda-developers.com/showthread.php?t=267321&highlight=battery+fix

lewcamino
15th January 2007, 03:07 AM
Thanks,

I installed that cab to my TyTN and the dll still is a no go. Any other ideas or ways to digitally sign it? I am really desperate, I have been trying for soooo long to get these to work.

Thanks, Lew

meschle
15th January 2007, 03:18 AM
Thats strange can you send me the file to my email eschlem@tiscali.co.uk and i will try to get it to work. I will include it in a cab i made before and see if that does the trick.

SetoK
16th January 2007, 05:16 PM
Any chance you're using Windows 2000 SP4, If so you might want to check out this link.

http://support.microsoft.com/kb/829924

Probably not the issue but, I figured I'd mention it just in case.

lewcamino
23rd January 2007, 04:42 AM
Sorry, but I am running Windows 95 version C. So I don't think that is the issue.

I just got a chance to check the forums, I will e-mail you the dll.

Thanks again, Lew

P.S. I am running XP sp2 :p

FInixNOver
1st August 2007, 09:26 PM
I've got a similar problem. I tryed to edit some dll's from HTC Touch Phone Pad International, but since they are digitaly signed, i can't change the contents without invalidating the digital signature. The goal would be to make the phone pad look more like the dialpad. I've created all the pictures I need, and I know which dll's to change. I'm using PE Explorer to edit the resources from the dll's, but first I need a way to remove the digital signature, and after changes are made, re-sign it.

Advices anyone?

FInixNOver
2nd August 2007, 03:00 PM
I've got a similar problem. I tryed to edit some dll's from HTC Touch Phone Pad International, but since they are digitaly signed, i can't change the contents without invalidating the digital signature. The goal would be to make the phone pad look more like the dialpad. I've created all the pictures I need, and I know which dll's to change. I'm using PE Explorer to edit the resources from the dll's, but first I need a way to remove the digital signature, and after changes are made, re-sign it.

Advices anyone?

Well I got it to work. With some help I was able to rebuild the signature in the changed dll's.

f3nd3r
22nd September 2007, 11:19 PM
Well I got it to work. With some help I was able to rebuild the signature in the changed dll's.

How did you achieve this? I am having the same problem and i guess i need to somehow remove the signature too.

aje_fr
19th October 2007, 07:44 AM
Yes, it'll be great to have some information about achieving this!
Thanks in advance

roozbeh
8th December 2007, 09:26 AM
any more information on how to do this?

fOmey
12th March 2009, 05:04 PM
Did anyone figure out a way to do this ?

fOmey
12th March 2009, 07:03 PM
*bump* *bump**bump**bump**bump**bump**bump**bump**bump**b ump*