Registering the CSP

The following Registry entries "register" the CSP with the operating system.

HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Cryptography
Defaults
Provider
<CSP name>
>Image Path:REG_SZ:<CSP DLL name>
>Signature:REG_BINARY:<digital signature>
>Type:REG_DWORD:<CSP type>

The "CSP name" entry must be the textual name of the CSP. If the CSP has been signed by Microsoft, this name must exactly match the CSP name that was specified in the Export Compliance Certificate (ECC). For information on the ECC, see Getting CSPs Signed.

The "Image Path" entry must be set to the name of the CSP DLL. Optionally, a fully qualified path, such as "c:\myx\rsabase.dll" can also be specified here. In this case, the CSP DLL need not be placed in a directory pointed to by the PATH environment variable.

The "Signature" entry must contain a digital signature for the CSP DLL. This signature can either be created with the Sign.exe utility (the debug signature) or obtained from Microsoft (the release signature). The Sign.exe utility is discussed in Using the Sign.exe Utility.