IT 웹개발/오류

이클립스 the server selected protocol version TLS10 is not accepted by client preferences[TLS12]

펌킨고구마 2022. 5. 10. 14:15
728x90
반응형

오류 내용 

 

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

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

 

 

스프링에서

프로젝트의 JDK 버전을 7에서 8로 업그레이드를 했더니 갑자기 위의 오류가 떴다.

 

 

아래 사이트에서 해결책을 찾았다.https://helloworld92.tistory.com/73

 

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

환경 세팅하고 서버 실행하는데 아래와 같은 오류가 계속 뜸.. TLS10 is not accepted by client preferences [TLS12] jdk .. The server selected protocol version TLS10 is not accepted by client preferences..

helloworld92.tistory.com

 

 

 

해결방법

 

JDK 내의 JRE 폴더에서 

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

 

java.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 ...

 

728x90
반응형
LIST