Perl Requires Chilkat v9.5.0.97+
Chilkat2 Perl
Remove the Authenticode Signature from an EXE or DLL
See more Code Signing Examples
Demonstrates how to remove the Authenticode signature from an EXE or DLL.Chilkat Perl Downloads
use strict;
use warnings;
use Chilkat2;
# This example requires the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
# You can verify a signed DLL or EXE.
my $path = 'c:/someDir/something.dll';
my $codeSign = Chilkat2::CodeSign->new;
# If successful, the signature is removed from the EXE or DLL file.
my $success = $codeSign->RemoveSignature($path);
if (!$success) {
print $codeSign->LastErrorText, "\n";
}
print 'success: ', ($success ? 1 : 0), "\n";