hello world

이클립스 TLS10 is not accepted by client preferences [TLS12] 오류 본문

WEB/error_log

이클립스 TLS10 is not accepted by client preferences [TLS12] 오류

sohyun_92 2021. 7. 1. 10:58
728x90

환경 세팅하고

서버 실행하는데 아래와 같은 오류가 계속 뜸..

TLS10 is not accepted by client preferences [TLS12] jdk ..

The server selected protocol version TLS10 is not accepted by client preferences 

Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "The server selected protocol version TLS10 is not accepted by client preferences [TLS12]". ClientConnectionId:ed19514a-7a09-47af-9798-509d3b8d2b98

Caused by: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS12]

 

 

구글링하니까 여러 해결법이 나와서 

이거 보고 따라했다.

https://lemontia.tistory.com/1037

 

[spring, mssql, sqlserver] 접속에러 (TLS10)

The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12] 직역해보면 서버에서 선택한 프로토콜 버전 TLS10이 클라이언트 기본 설정에서 허용되지 않습니다. [TLS13, T..

lemontia.tistory.com

근데도 안돼서 삽질했는데

jre폴더의 security 파일을 수정했어서 안됐던거였다

java의 jdk 폴더에 있는 jre에서 바꿔줘야한다. ;; 어쩐지 jre로 하면 실행이되더라구;;;

C:\Program Files\Java\jdk1.8.0_291\jre\lib\security 

 

security 파일에서 jdk.tls.disabledAlgorithms 부분 찾아서 TLSv1, TLSv1.1 를  지워주면 된다.

 

... jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \ DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \ include jdk.disabled.namedCurves ...

 

 

끗~

Comments