Install the Futurex CNG provider on every computer that opens the column master key: the computer where you run SQL Server Management Studio (SSMS) to create the keys and encrypt columns, and each computer that runs a client application that reads or writes the encrypted columns.
Install the Futurex CNG provider
1
Download the Futurex CNG package (
fxcng-<version>.zip) from the Futurex Portal. Use the latest FXCNG 6.x release.2
Open PowerShell as an administrator and extract the package. Copy the 64-bit files to the default installation directory:
PowerShell
C:\Program Files\Futurex\fxcng contains fxcng.dll, fxcng.cfg, CNGInstallUtil.exe,
InstallCNG.bat, and UninstallCNG.bat. The package’s info.txt lists the FXCNG version
and revision.3
Register the provider:
PowerShell
The output ends with lines similar to the following:The
Output
Default log location line has a typo in the path (C:\User) and doesn’t reflect your configuration. The provider writes its log to the <LOG-FILE> path in fxcng.cfg.CNGInstallUtil copies fxcng.dll to C:\Windows\System32, which is the copy Windows
loads. Running install again while the provider is registered fails with Failed to register provider with C0000035. To upgrade FXCNG later, stop the applications that use the provider,
run .\CNGInstallUtil.exe uninstall "Futurex CNG", restart the computer, delete
C:\Windows\System32\fxcng.dll, copy the new files to C:\Program Files\Futurex\fxcng
(keep your edited fxcng.cfg), and run the install command again.Install the 32-bit provider for 32-bit applications
The 64-bit (x64) provider serves 64-bit processes, including SSMS 19 and later. If a 32-bit application opens the column master key, such as SSMS 18 or earlier, also install the 32-bit (x86) provider from the same package:
1
Copy the
x86 folder of the package to a separate directory, such as C:\Program Files (x86)\Futurex\fxcng.2
In that directory, run
InstallCNG-32.bat as an administrator. It registers the 32-bit provider with CNGInstallUtil.exe and imports FuturexCNG.reg.3
Restart the computer.
Verify the provider
After you edit the configuration file, confirm that Windows loads the provider and that it reaches the HSM:PowerShell
The
certutil -csplist output lists the provider without an error line under it:Output
certutil -key -csp "Futurex CNG" ends with CertUtil: -key command completed successfully.
and lists the keys the identity can see. If certutil -csplist reports Futurex CNG: Provider DLL could not be found., Windows can’t load fxcng.dll; install the latest FXCNG
package.Use the provider name exactly as
certutil -csplist shows it (Futurex CNG) wherever your application selects a CNG Key Storage Provider.
