[ASP.NET Core] Microsoft.Data.SqlClient.SqlException (0x80131904)
Linux환경 하에서 작동하는 ASP.NET Core 5 웹서비스에서 Windows Server의 MSSQL Server 접속 시 아래와 같은 오류가 발생하는 경우
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed) |
MSSQL Server에서 TLS1.2 연결이 지원되는지 확인해야 합니다. 해당 문제점이 발생된 사레로는 MSSQL Server 2014 (SP1)이었으며 아래의 가이드에 따라
KB3135244 - TLS 1.2 support for Microsoft SQL Server
KB3135244 - TLS 1.2 support for Microsoft SQL Server
A subscription to make the most of your time
support.microsoft.com
해당 서버에 보안업데이트를 적용하여 문제를 해결할 수 있었습니다.
Download Microsoft® SQL Server® 2014 SP1 Latest Cumulative Update from Official Microsoft Download Center
Important! Selecting a language below will dynamically change the complete page content to that language. Chinese (Simplified)Chinese (Traditional)EnglishFrenchGermanItalianJapaneseKoreanPortuguese (Brazil)RussianSpanish Download Cumulative Update Package
www.microsoft.com
단, 이 문제는 Windows Server 환경에서 ASP.NET Core 5 웹서비스가 동작하는 경우에서는 발생되지 않았습니다. (왜??)