Using the Sign.exe Utility

The Sign.exe utility is used to sign CSP DLLs. Given a DLL file, it will produce a signature file, whose contents can be placed into the Registry as discussed in the previous section. Sign.exe takes three arguments, as shown below:

sign {s|v} <filename> <signature file>
 

The first argument must be "s" if a signature file is to be generated, and "v" if an existing signature file is to be verified against the DLL file. The second argument must be the fully qualified file name of the DLL file, and the third argument the fully qualified file name of the signature file.

If the CSP DLL file is called Myxcsp.dll, the following command can be used to generate a signature file for it (called Myxcsp.sig).

sign s myxcsp.dll myxcsp.sig