Skip to content

Commit efd62a0

Browse files
authored
Clarify that "client settings" mean client registry settings
1 parent baa7e86 commit efd62a0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/connect/oledb/features/encryption-and-certificate-validation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Encryption and certificate validation
33
description: Learn about encryption and certificate validation for SQL Server connections. The OLE DB Driver for SQL Server supports encryption and certificate validation.
44
author: David-Engel
55
ms.author: davidengel
6-
ms.date: 04/20/2023
6+
ms.date: 05/02/2025
77
ms.service: sql
88
ms.subservice: connectivity
99
ms.topic: "reference"
@@ -28,11 +28,11 @@ Applications may also request encryption of all network traffic by using connect
2828

2929
For information about connection string keywords, see [Using connection string keywords with OLE DB driver for SQL Server](../applications/using-connection-string-keywords-with-oledb-driver-for-sql-server.md).
3030

31-
To enable encryption to be used when a certificate hasn't been provisioned on the server, the **`Force Protocol Encryption`** and the **`Trust Server Certificate`** client [registry settings](./registry-settings.md#encryption-and-certificate-validation) can be set. In this case, encryption uses a self-signed server certificate without validation if no verifiable certificate has been provisioned on the server.
31+
To enable encryption to be used when a certificate hasn't been provisioned on the server, the **`Force Protocol Encryption`** and the **`Trust Server Certificate`** client [registry settings](./registry-settings.md#encryption-and-certificate-validation) must be set. In this case, encryption uses a self-signed server certificate without validation if no verifiable certificate has been provisioned on the server.
3232

3333
## Encryption and certificate validation behavior
3434

35-
Application settings never reduce the level of security set in the registry, but may strengthen it. For more information, see [Registry settings](./registry-settings.md#encryption-and-certificate-validation). For example, if **`Force Protocol Encryption`** isn't set for the client, an application may request encryption itself. To guarantee encryption even when a server certificate hasn't been provisioned, an application may request encryption and enable `TrustServerCertificate`. However, if `TrustServerCertificate` isn't enabled in the client configuration, a provisioned server certificate is still required.
35+
Application settings never reduce the level of security set in the registry, but may strengthen it. For more information, see [Registry settings](./registry-settings.md#encryption-and-certificate-validation). For example, if **`Force Protocol Encryption`** isn't set for the client, an application may request encryption itself. To guarantee encryption even when a server certificate hasn't been provisioned, an application may request encryption and enable `TrustServerCertificate`. However, if `TrustServerCertificate` isn't enabled in the client's registry configuration, a provisioned server certificate is still required.
3636

3737
Version 19 of the OLE DB Driver for SQL Server introduces breaking changes in the encryption related APIs. For more information, see [Encryption property changes](../major-version-differences.md#encryption-property-changes).
3838

@@ -42,20 +42,20 @@ The following table describes the evaluation of the encryption settings:
4242

4343
| Force Protocol Encryption client setting | Connection string/connection attribute Encrypt/Use Encryption for Data | **Resulting encryption** |
4444
|--|--|--|
45-
| 0 | No/Optional | Optional |
46-
| 0 | Yes/Mandatory (default) | Mandatory |
47-
| 0 | Strict | Strict |
45+
| 0 (default) | No/Optional | Optional |
46+
| 0 (default) | Yes/Mandatory (default) | Mandatory |
47+
| 0 (default) | Strict | Strict |
4848
| 1 | No/Optional | Mandatory |
4949
| 1 | Yes/Mandatory (default) | Mandatory |
5050
| 1 | Strict | Strict |
5151
| 2 | Ignored | Strict |
5252

5353
The following table describes the resulting encryption and validation:
5454

55-
| Encryption | Trust Server Certificate client setting | Connection string/connection attribute Trust Server Certificate | Result |
55+
| Encryption | Trust Server Certificate client registry setting | Connection string/connection attribute Trust Server Certificate | Result |
5656
|--|--|--|--|
5757
| Optional | N/A | N/A | Encryption only occurs for LOGIN packets. |
58-
| Mandatory | 0 | Ignored | Encryption occurs only if there's a verifiable server certificate, otherwise the connection attempt fails. |
58+
| Mandatory | 0 (default) | Ignored | Encryption occurs only if there's a verifiable server certificate, otherwise the connection attempt fails. |
5959
| Mandatory | 1 | No (default) | Encryption occurs only if there's a verifiable server certificate, otherwise the connection attempt fails. |
6060
| Mandatory | 1 | Yes | Encryption always occurs, but may use a self-signed server certificate. |
6161
| Strict | N/A | N/A | Encryption occurs only if there's a verifiable server certificate, otherwise the connection attempt fails. |

0 commit comments

Comments
 (0)