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.
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.
Next, a window will pop up, enter the password you just set twice, click "OK"(确定), and then enter it again.
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.
Then the program will exit automatically, you can enter the property page to check whether the file has been signed.
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.
Subscribe to:
Comments (Atom)
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...
-
markdown I believe that everyone who reads this article must have filled the Netease Cloud Music VIP. Otherwise you won't get the ncm f...
-
markdown I believe everyone has read the article I wrote last time about transferring files between Google Cloud Disk team disks. The websi...
-
markdown If you lived in China, you may noticed, if you access some site that included any scripts in 'ajax.googleapis.com', it may...