In order to encrypt the connection between the SQL Gateway and the Microsoft SQL Server database by SSL, perform the following steps:
The installation of the SQL Gateway contains a batch file that creates a self-signed certificate for the Microsoft SQL Server.
As a prerequisite for executing the batch file, the MakeCert tool from Microsoft must be available on the PC.
Proceed as follows
|
Step |
Action |
Details |
|---|---|---|
|
1 |
Open the batch file. |
In the tab, select . |
|
2 |
Adapt the batch file template. |
|
|
3 |
Execute the batch file on the server PC (the PC on which the Microsoft SQL Server is running). |
Two certificates are created:
You are requested to enter two passwords: one for each certificate. |
|
4 |
Import the root certificate (sqlTestCA.cer) to the folder of the certificate store on the server PC. |
– |
|
5 |
Assign access rights to the server certificate in order to allow the SQL server to access the certificate. |
You can copy the server name from the . |
|
6 |
Select the certificate in the configuration of the SQL server as described in the section Configuring the Microsoft SQL Server and restart the SQL server. |
– |
|
7 |
Import the root certificate to the folder of the certificate store on the client PC (the PC on which the SQL Gateway is running). |
Result: The server certificate is accepted by the client PC. |
Configure the Microsoft SQL Server for using SSL encryption:
|
Step |
Action |
|---|---|
|
1 |
Open the . |
|
2 |
Right-click the node for the SQL server instance and execute the command from the context menu. |
|
3 |
Set the server certificate. |
|
4 |
In order to use SSL encryption for the database connections, set the parameter to . |
In the tab of the SQL Gateway, configure the SSL parameters:
|
Step |
Action |
|---|---|
|
1 |
Select the entry from the list of . |
|
2 |
On the right-hand side, set the parameter to . |
|
3 |
Select the option for the parameter. |
For Microsoft SQL Server connections, the tab of the SQL Gateway allows you to configure how to evaluate server certificates.
If the parameter is set to , the parameter provides the following options:
|
option |
Description |
|---|---|
|
|
The SQL Gateway computer validates the server certificate and verifies the name.
NOTE: If this option is used, the parameter must be set to the full name of the SQL server.
|
|
|
The server certificate is not verified by the SQL Gateway computer. |
| WARNING | |
|---|---|