TLS 1.2 issues SQL 2022. What do these error messages mean.

Freddy Vorstenbosch 0 Reputation points
2025-03-04T06:34:05.3366667+00:00

I have SQL Server 2022 Developer edition running with enforced encryption (TLS 1.2). For some reason I have frequent disconnects, from the logs it states that TLS is successfully activated and also the certificates are loaded.

More often I get the first error.. when I forcefully try to connect with -tls1_2 I get the second.

2025-03-03 05:16:30.47 Server      Error: 4014, Severity: 20, State: 10.
2025-03-03 05:16:30.47 Server      A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: -2146893052, output error: 0).

2025-03-04 05:43:06.47 Logon       Error: 17821, Severity: 20, State: 1.
2025-03-04 05:43:06.47 Logon       A valid TLS certificate is not configured to accept strict (TDS 8.0 and above) connections. The connection has been closed.


I've gone through all documentation and AI bots.. but I cannot find out what is causing these disconnects.

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
147 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 118.9K Reputation points MVP
    2025-03-04T22:38:32.4733333+00:00

    The first error suggests that there are network issues or the client is sending malformed TDS.

    The second error means what it says. That is, you need to actually configure a certificate for Strict to work. And note that Strict implies TLS 1.3, not TLS 1.2.

    0 comments No comments

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.