Discuss this help topic in SecureBlackbox Forum
Remove Authenticode from executable
To remove Authenticode from an executable with SecureBlackbox, use the TElAuthenticodeManager component:
TElAuthenticodeManager manager = new TElAuthenticodeManager();
bool signed = manager.Open(@"C:\bin\program.exe");
if (signed)
manager.RemoveSignatures();
If it is needed to remove only certain signature(s), call the RemoveSignature() method and pass the index of the signature you need to remove:
if (signed)
manager.RemoveSignature(0);
Alternatively, you can locate the desired instance of TElAuthenticodeSignature in the Signatures[] list and call its Remove() method:
if (signed)
{
TElAuthenticodeSignature signature = manager.get_Signatures(0);
signature.Remove();
}
manager.Save(@"C:\Bin\not_signed_program.exe");
manager.Close();