Share via

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

Freddy Vorstenbosch 10 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 | SQL Server Transact-SQL
0 comments No comments

1 answer

Sort by: Most helpful
  1. Erland Sommarskog 134.7K Reputation points MVP Volunteer Moderator
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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