Digital Signature (MS)

zhaozj2021-02-08  222

Digital Signature (MS)

How to sign the ActiveX control written by VB, or VC? There are many articles on the Internet for reference. I give a specific step here. I don't want to say more about the specific meaning.

Scene: Test.ocx: ActiveX control to be signed

Signature tools are downloaded in Microsoft website.

step:

(1) Generate a certificate and private key file called chinani, private key is chinani

Makecert -n cn = chinani -sv chinani.pvk chinani.cer

(2) Generate SPC by the certificate

CERT2SPC chinani.cer chinani.spc

(3) Signature Test.oCX files

Signcode test.ocx -spc chinani.spc -V chinani.pvk

View Test.ocx, there should be the following results:

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

New Post(0)