개발자 공부/문제해결

드라이버가 SSL(Secure Sockets Layer) 암호화를 사용하여 SQL Sever로 보안 연결을 설정할 수 없습니다.

유정♡ 2025. 3. 20. 16:06

 

Caused by: cohttp://m.microsoft.sqlserver.jdbc.SQLServerException: 드라이버가 SSL(Secure Sockets Layer) 암호화를 사용하여 SQL Sever로 보안 연결을 설정할 수 없습니다. 오류: "The server selected protocol version TLS10 is not accepted by client preferences [TLS12]". ClientConnectionId: ~

 


 

 

1. 사용자의 jdk 폴더로 이동 -> jre -> lib -> -> security -> java.security 파일 열기 

    ( ..\java-1.8.0-openjdk-1.8.0.332-1.b09.ojdkbuild.windows.x86_64\jre\lib\security )

 

2. 메모장에서 TLSv1, TLSv1.1 찾은 후 삭제 -> 저장 -> 서버 재실행 

 


 

1. https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16#download-for-windows 사이트 접속 후 x64 다운로드 

 

Download ODBC Driver for SQL Server - ODBC Driver for SQL Server

Download the Microsoft ODBC Driver for SQL Server to develop native-code applications that connect to SQL Server and Azure SQL Database.

learn.microsoft.com

 

 

 

2. Win + R을 누르고 regedit을 입력 -> 레지스트리 편집기 상단에
    -> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols 입력

    -> Protocols 디렉토리안에 TLS 1.2 있는지 확인

 

 

3. REG_SZ , REG_DWORD  (REG_SZ -> 문자열 값, REG_DWORD -> DWORD(32비트))

    Client, Server 두개 다 만들고 컴퓨터 재부팅 후 로컬 실행 

 

728x90