How to register a global hotkey for your application in C#

How to register a global hotkey for your application in C#

Register a hotkey for your application that can be triggered even if your form is minimized and does not have focus. More »

How to download a file in C# (progressbar and download speed)

How to download a file in C# (progressbar and download speed)

Learn how to download files in C# while displaying the percentage and the download speed. More »

UDP hole punching implementation in C#

UDP hole punching implementation in C#

Learn how to implement UDP hole punching so you can make your clients life a lot easier by not forcing them to open ports on their end. More »

 

Remove digital signature from a file using C#

There are two reasons why you might want to consider removing the digital signature from some of the files you are using, especially third party libraries.

The first reason is because in many cases it will greatly speed up your programs start-up time. The reason for that is because if a file is signed with Microsoft digital certificate as an example on runtime it will attempt to verify the signature which in most cases it requires an internet connection. In cases where the user might not have an active internet connection or if the verification attempt is blocked by a firewall or any other reason, it will greatly increase the time your application will take to start.

Another important reason for removing a digital signature from a library you want to distribute alongside with your software is that a lot of users feel alarmed when an application tries to establish a connection at start-up, especially if the type of the application you are making doesn’t sound like the type it requires to connect somewhere.

Thankfully it is fairly easy to remove a signature from a file using the ImageRemoveCertificate API function. Below you can find a snippet that illustrates how it can be implemented.

If you would like to use the above code but have no knowladge on how to compile it then simply download the already compiled version from FileUnsigner v1.0.

Share on FacebookTweet about this on TwitterShare on Google+Share on StumbleUponShare on LinkedInShare on RedditPin on PinterestShare on TumblrDigg thisPrint this pageEmail this to someone

8 Responses to Remove digital signature from a file using C#

  1. ahmd says:

    Don’t use index 0 for ImageRemoveCertificate(). Get its value from ImageEnumerateCertificates() API.

  2. Roberto says:

    I love your blog. You have got amazing stuff right here.

  3. Rewad says:

    Your information is very appealing.

  4. Loss Factor says:

    thnx for sharing your excellent website.

  5. yasin says:

    Nice web page you’ve gotten here.

  6. shakawire says:

    Hello! This is my first visit to your blog!
    We are a collection of volunteers and starting a new project in a community in the same niche.
    Your blog provided us beneficial information to work on.
    You have done a outstanding job!

Leave a Reply

Your email address will not be published. Required fields are marked *