Signing a CAB File
To sign a CAB file using the Code Signing Wizard:
- Run the SIGNCODE utility (available in the CAB&SIGN directory on the Visual C++ CD) to launch the Code Signing Wizard.
C:\CAB&SIGN\SIGNCODE
- In the Code Signing Wizard dialog box, click Next to advance to the next page.
- In the Which program would you like to sign? edit box, enter the name of the CAB file you want to sign.
- In the What would you like to call this program? edit box, enter the name as you want it to appear on the certificate.
- Click Next to advance to the next page.
- In the Under which Software Publishing Credentials would you like to sign this program? edit box, enter the name of the Software Publisher Certificate (SPC) file.
- In the Where can you find the secret, private key that goes with these credentials? edit box, enter the name of the private key (PVK) file.
- Click Next twice to advance to the last page.
- Click Sign to sign the CAB file. Your file will be digitally signed.
You can sign your DLLs and OCXs directly, without using a CAB file. The advantages of a CAB file are compression and, if used with an INF file, the bundling of all necessary code together.