Signature development procedures (making CAB) and allows us to use

xiaoxiao2021-03-05  27

Signature development procedures (making CAB) and allows us to use

1 Establish an installer, pack 2 files compressed with VB, use IExPree 2.0, select "Unpack the file and run the installation command", generate a "compressed run file" 3 pair "Compressed File" to sign, with Signcode (Before this, it is necessary to generate a certificate file, how to generate a while, say) 4 Write code, CLSID does not matter, as long as the format is the same! But there is another property called CodeBase to use your "compression Run files, such as:

If your VB project has a version number, then it is changed to your version number, and even if you have installed your software, it is not your version number, it will be installed.

Ok, then start how to make a certificate to refer to here: http://msdn.microsoft.com/library/chs/default.asp? URL = / library / chs / vcre / html / create --_signed_cab_files_for_mfc_and_atl_controls.asp

1 download certificate production tool http://download/b/e/f/bef2551b-401d-4311-ab8f 13d3892b8154/codesigningx86.exe extract 2 Makecert.exe creation certificate makecert -sk Luo Jun SK -SS Luo Jun ss -n cn = "Luo Jun N" -m 12 Luojun.cer

-SK represents private key -ss representation - N cn = "" This is the company name -M effective month lujun.cer output certificate name

3 Create a publisher's instructions for Cert2Spc.exe Cert2SPC Luojun.cer Luojun.spc

4 has been established, then how to sign with SignCode? Step steps: (1) Next (2) Select the exe file you want to sign, it is the "Compressed Run File" that we say above (3) Custom Next ( 4) Select from the file -> Select your "publisher's instruction file", ie Luojun.SPC file -> Next (5) private key in CSP -> "Microsoft Strong Cryptographic Province" -> "RSA Full" - > "Luo Jun SK" -> "Signature" -> "Next" (6) Select an algorithm (personal comparison MD5) -> Next (7) Do not change here! -> Next (8) input Signature "Description" and "URL" (9) Add timestamp to the data in: http://timestamp.verignign.com/scripts/timstamp.dll (10) Complete 5 OK, you can take you The compressed run file is placed in Object :)

From: http://blog.9cbs.net/newrocky/archive/2004/11/17/184317.aspx

转载请注明原文地址:https://www.9cbs.com/read-34408.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.039, SQL: 9