Sunday, September 13, 2020

Digital Sign your EXE, DLL or CAB.

markdown When you download an executable file from a **trusted website**, you will find that it has been digitally signed. However, digital signature requires the purchase of a certificate, which is not a small fee, so today I will teach you how to digitally sign your executable file with a self-signed certificate. First, you need to download the executable file I made from my website. I have packaged all the required files in this file. [Portal](https://raw.githubusercontent.com/orange2008/postitem/master/ds-Postitem/digital_signature_auto.exe) After downloading, please confirm that this file is digitally signed.![](https://cdn.jsdelivr.net/gh/orange2008/IMGBED/assets/20200913102703.png) The signer’s name is me, if not, please download again. Next, open this file, and it will ask for your administrator password. Since the creation of a self-signed certificate requires administrator privileges, we need your password. If nothing unexpected happens, you will see a CMD window. Enter the file you need to sign. Next, enter the password of the private key. For security, you cannot set a simple password. For the sake of demonstration, I set a simple password. Next enter the certificate name (this is the signer name you see on the property page). Enter your Email, you can fake one, but I recommend entering the real one. Enter your organization, you can fake one. Your command line window should look like this.![](https://cdn.jsdelivr.net/gh/orange2008/IMGBED/assets/20200913103839.png) Next, a window will pop up, enter the password you just set twice, click "OK"(确定), and then enter it again.![](https://cdn.jsdelivr.net/gh/orange2008/IMGBED/assets/20200913103903.png)![](https://cdn.jsdelivr.net/gh/orange2008/IMGBED/assets/20200913103920.png) Next, the program will automatically sign the file, and finally you will be asked whether to delete the generated self-signed certificate, press y to delete.![](https://cdn.jsdelivr.net/gh/orange2008/IMGBED/assets/20200913103957.png) Then the program will exit automatically, you can enter the property page to check whether the file has been signed.![](https://cdn.jsdelivr.net/gh/orange2008/IMGBED/assets/20200913104139.png) I have signed it here. Of course, the untrusted certificate will still be displayed on other computers, because it is a self-signed certificate, but it is still possible if you only use it to prove yourself.

1 comment:

  1. This information is meaningful and magnificent which you have shared here about the car rental software. I am impressed by the details that you have shared in this post and It reveals how nicely you understand this subject. I would like to thanks for sharing this article here.Taxi to Dublin Airport Dublin

    ReplyDelete

Digital Sign your EXE, DLL or CAB.

markdown When you download an executable file from a **trusted website**, you will find that it has been digitally signed. However, digital...