• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

delcert - Sign strip tool

Search This thread

deepred

Member
Jan 19, 2006
7
16
Hi,

here is a small tool that strips (removes) digital sign (Authenticode) from PE executable files like *.exe, *.dll, *.mui, etc. On error HRESULT is returned, i.e. 0x00000005 means that file is readonly.
Code:
C:\[snip]>delcert.exe OEM\OEMOpera\OperaWM.exe

Target file(s): OEM\OEMOpera\OperaWM.exe

Stripping file: C:\[snip]\OEM\OEMOpera\OperaWM.exe.
Succeeded.

C:\[snip]>delcert.exe OEM\OEM_Lang_0409\*.mui

Target file(s): OEM_Lang_0409\*.mui

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\aboutprop.dll.0409.mui.
Succeeded.

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\BKLBrightness.dll.0409.mui.
Succeeded.
Source is included. You may need to install Visual Studio 2008 C++ Runtime before running.
 

Attachments

  • delcert.zip
    10.2 KB · Views: 19,887

Da_G

Inactive Senior RD / Moderator Emeritus
Aug 20, 2007
3,320
1,553
Riverside, CA
I can't believe no one posted thanks for this :p I just used it recently and it worked a charm! So, thanks! :) Appreciate your work.
 

cmylxgo

Senior Member
Feb 13, 2007
1,680
2,033
Hi,

here is a small tool that strips (removes) digital sign (Authenticode) from PE executable files like *.exe, *.dll, *.mui, etc. On error HRESULT is returned, i.e. 0x00000005 means that file is readonly.
Code:
C:\[snip]>delcert.exe OEM\OEMOpera\OperaWM.exe

Target file(s): OEM\OEMOpera\OperaWM.exe

Stripping file: C:\[snip]\OEM\OEMOpera\OperaWM.exe.
Succeeded.

C:\[snip]>delcert.exe OEM\OEM_Lang_0409\*.mui

Target file(s): OEM_Lang_0409\*.mui

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\aboutprop.dll.0409.mui.
Succeeded.

Stripping file: C:\[snip]\OEM\OEM_Lang_0409\BKLBrightness.dll.0409.mui.
Succeeded.
Source is included. You may need to install Visual Studio 2008 C++ Runtime before running.

Thanks for this...it fixed and issue I had when trying to remove a cert with another tool.
 

deepred

Member
Jan 19, 2006
7
16
You're right, authenticode provides input data for Windows Mobile (originally Windows CE) policy mechanism which decides then if it is allowed to run the file or not. I used it to strip authenticode from OEM files taken from HTC devices before signing them with my own certificate (I usually sign files in my cooked ROMs). I.e. if file is already signed you can't sign it with another certificate until old one is removed.
Due to the fact that certificates are asymmetric you can sign files only with private certificates. That's why I use my own certificates.
To bypass the protection you need to get some how the private part and sign you file with it. Or you can just disable the security policy that enforces file origin check.
 

WarlockW

Senior Member
Dec 30, 2007
1,249
658
Minnesota
Works beautifully when other tools didn't ! Is Right !

Works beautifully when other tools didn't ! Is Right !

Worked Great Thanks - Just What I was Looking For !!!!!

:D :D :D :D :D
 

TheGeekyGuy101

New member
Jul 14, 2014
1
0
Still working in Windows 8.1

Still working in Windows 8.1 :D
It's great because I can remove the cert from bit torrent and any other group policy blocked programs on my school laptop
 

Tropple

New member
May 20, 2016
1
0
Useful for software publishers

We're using the delcert tool to avoid warnings with expired certificates. Our sign tool doesn't like exe files that already have a valid, but expired signature.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Hi,

    here is a small tool that strips (removes) digital sign (Authenticode) from PE executable files like *.exe, *.dll, *.mui, etc. On error HRESULT is returned, i.e. 0x00000005 means that file is readonly.
    Code:
    C:\[snip]>delcert.exe OEM\OEMOpera\OperaWM.exe
    
    Target file(s): OEM\OEMOpera\OperaWM.exe
    
    Stripping file: C:\[snip]\OEM\OEMOpera\OperaWM.exe.
    Succeeded.
    
    C:\[snip]>delcert.exe OEM\OEM_Lang_0409\*.mui
    
    Target file(s): OEM_Lang_0409\*.mui
    
    Stripping file: C:\[snip]\OEM\OEM_Lang_0409\aboutprop.dll.0409.mui.
    Succeeded.
    
    Stripping file: C:\[snip]\OEM\OEM_Lang_0409\BKLBrightness.dll.0409.mui.
    Succeeded.
    Source is included. You may need to install Visual Studio 2008 C++ Runtime before running.