Testing the CSP

Your CSP DLL must be signed each time that it is built, and the signature placed appropriately in the registry. It is a good idea to incorporate this procedure into your Make file, so that steps are not forgotten.

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

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