← Back to list

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

Problem: TLS 1.0 is not supported in Java 1.8 and above. To connect to SQL server 2014 and below servers, you need to send TLS 1.0…

murat bingöl · 2021-06-06 12:42 · 11 claps · 0.4 min read
#java #sql-server #jdbc #java-7 #ssl
Open on Medium ↗

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

Problem: TLS 1.0 is not supported in Java 1.8 and above. To connect to SQL server 2014 and below servers, you need to send TLS 1.0 connection. Solution : if you downgrade your project to java 1.7 version this problem will be solved. The jdbc driver version you are using should be 4.2.

solution for java 1.7 SSL connection issue: Note: You will get an error when you query websites with SSL certificate in Java 1.7 version. To fix this error; Download the site’s .cer certificate. Next (note we are talking about jre file here) Write “keytool” in carsets file at %path_java_jre\lib\security. Your connection problem will disappear.


메타데이터
post_id
ffd3166e59f0
slug
the-server-selected-protocol-version-tls10-is-not-accepted-by-client-preferences-ffd3166e59f0
url
https://medium.com/@murat-bingol1991/the-server-selected-protocol-version-tls10-is-not-accepted-by-client-preferences-ffd3166e59f0
canonical_url
https://medium.com/@murat-bingol1991/the-server-selected-protocol-version-tls10-is-not-accepted-by-client-preferences-ffd3166e59f0
author_url
https://medium.com/@murat-bingol1991
status
ok
fetched_at
2026-07-28 06:17:56