How to communicate SQL server 2022 and client applications using TLS 1.3 without encryption and with encryption

2025-01-28T18:15:35.3333333+00:00

I have win32 client application uses SQL server 2022, SQL server 2019 and TLS 1.2 on Windows 10, Windows 11, Windows server 2022 and Windows server 2019 without encryption while Win32 client application and SQL server runs on the same machine and when SQL server and Win32 client application separately running in different machines uses TLS 1.2 with Encryption (using Force encryption flag enabled with Trusted certificate).User's image

User's image

User's image

Now I have a requirement to use only support TLS 1.3 protocol while Windows operating system supports it, with search of configuring TLS 1.3 with SQL server 2022 (SQL server 2022 installed with Cumulative update), the client connection to sql server is always encrypted (Force Encryption, Force Strict Encryption flag enabled, requires certificate) and requires client application connection string changes (Encrypt= strict, TrustServerCertificate=false, HostNameInCertificate) required.

Is there a way TLS 1.3 with SQL Server 2022 and client applications communicates without encryption flags enabled and not passing Encrypt=strict and other supported parameters)

Is it possible to connect TLS 1.3 with SQL server 2022 and client applications without encryption instead of forcing encryption with TLS 1.3.

Note: I have disabled SSL 2.0, SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2 and enabled TLS 1.3 in registry settings and followed guidelines to connect TLS 1.3, I have not found answers for TLS 1.3 without encryption in communication with SQL server 2022 and client applications.

SSMS 20.0 version is used when TLS 1.3 enabled and connecting with Optional encryption, connection did not work.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,043 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,437 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,664 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,677 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 116.5K Reputation points MVP
    2025-01-28T22:01:44.8966667+00:00

    You might be able to do this with registry settings, see https://learn.microsoft.com/en-us/sql/connect/oledb/features/registry-settings?view=sql-server-ver15#encryption-and-certificate-validation

    Note that this page is for the OLE DB provider. I gave this link, because this is where I have seen this option. But I would expect it to be available with .NET as well. It goes without saying that you need a modern version of your client API that supports strict encryption.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.