일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- mysql
- jsp
- Controller
- Java
- Database
- Array
- jquery
- Uipath
- db
- MVC
- View
- string
- 자료구조
- spring
- Oracle
- 조건문
- Eclipse
- html
- SpringBoot
- API
- Board
- JDBC
- React
- 상속
- Thymeleaf
- rpa
- Scanner
- 문자열
- 이클립스
- 배열
- Today
- Total
유정잉
드라이버가 SSL(Secure Sockets Layer) 암호화를 사용하여 SQL Sever로 보안 연결을 설정할 수 없습니다. 본문
드라이버가 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 두개 다 만들고 컴퓨터 재부팅 후 로컬 실행
'개발자 공부 > 문제해결' 카테고리의 다른 글
script 소스 변경 반영 (version 바꾸기) - 캐시 삭제 (0) | 2025.06.30 |
---|---|
mapper mybatis 오류 해결 -> org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): (0) | 2024.06.17 |
인텔리제이 Maven Build Clean 하는 법 -> java: package ~~ does not exist 오류 해결 (0) | 2024.06.17 |
[java eclipse 오류 해결] Error occurred during initialization of boot layer (1) | 2024.02.13 |
eclips 파일 실행 안 될 때 해결 방법 (0) | 2024.02.13 |