Use the procedure below to set up a CSP Vault for Databases production environment for Microsoft SQL Server.
Prerequisites
Before you begin, make sure you have created a CSP Vault for Databases. For more information about creating a vault, see: Creating a Vault.
To set up a CSP Vault production environment
- Log in to the Cryptographic Security Platform Vault for Databases webGUI using an account with Cloud Admin privileges.
- (optional) Create a CSP cluster node mapping. For more information, see: Creating a Cluster Node Mapping for CSP Vault for Databases.
A CSP cluster node mapping helps Entrust client on the database node to failover in case one of the CSP node fails.
- Download the TDE script bundle. For more information, see: Downloading the TDE Script Bundle for Microsoft SQL Server.
The prefix specified when downloading the TDE scripts is stored in
entrust.confas theDBSet name. TheDBSet namedoes not represent an actual object. It serves as the base name for generating the associated CVMSet and KeySet names. For example, if theDBSet nameissqlserver, the scripts create the KeySetsqlserver_keysetand the CVMSetsqlserver_cvmset. You can change theDBSet nameinentrust.confafter downloading the TDE scripts. - Copy the TDE script bundle to the first Microsoft SQL server node.
The bundle is a ZIP file named
<name>.zip, where<name>is the name you specified when downloading the bundle in To set up a CSP Vault production environment. For example,mssql_toi.zip.The steps below use
mssql_toi.zipas an example. - Open your Microsoft SQL server.
- Navigate to the folder where the TDE scripts are stored.
- Unblock the TDE script bundle by running the following PowerShell command:
Unblock-File -Path"<path-to-your-file>" - Extract the TDE script bundle by running the following command: For example:
Unzip -Path"<path-to-your-file>"-DestinationPath"<destination-path>"Unzip -Path .\mssql.zip -DestinationPath C:\Users\Administrator\mssqlThe bundle contains the following files:
check-connection.exeencryptclust.ps1entrust.confentrust_dbmstudio.ps1htsql ekm_provider.dllopen_db_key.ps1precheck.ps1setup.ps1
- Set up the first Microsoft SQL server node. In PowerShell, run:
.\setup.ps1 -node first -config .\entrust.conf - At the prompt, enter the password for the CSP Vault for Databases.
- At the prompt, enter the password for the vault administrator of the CSP Vault for Databases.
- At the prompt, log in to the CSP Vault for Databases as the vault administrator. The setup script creates the KeySet and the CVMset in your CSP Vault for Databases.
- At the prompt, verify that the Microsoft SQL server node can communicate with CSP Vault for Databases:For more information about checking Microsoft SQL server connections, see Checking your Microsoft SQL Server Connections.
PS> hcl status and PS> check-connection <Access Token File Path>