Open GeoffCraigVRU opened 1 year ago
@GeoffCraigVRU we will look into this and will get back to you soon.
@GeoffCraigVRU can you provide the error messages in server log as well?
@JRahnama sorry, I was out of the office. What type of error messages are you looking for from the server? Event logs or something else?
@JRahnama we are getting the following error in the Application log on the SQL Server.
The login packet used to open the connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library.
@GeoffCraigVRU Is there a way you can provide a packet trace for the errors?
Describe the bug
.Net 7 app running using aspnet:7.0.3-jammy docker image won't connect to a SQL 2019 server with TLS 1.2 enabled. This is probably due to OpenSSL 3.0. If I open a connection to the container and run
openssl s_client -connect FQDN_OF_SQL_SERVER:1433
I get this result:
Expected behavior
Connections to SQL Server should connect.
Further technical details
Microsoft.Data.SqlClient version: 5.1.0 .NET target: .net 7 SQL Server version: SQL 2019 Operating system: Docker container 7.0.3-jammy
Additional context Add any other context about the problem here.