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

84,300

Solution 1

Go to folder C:\Program Files (x86)\Java\jre1.8.0_291\lib\security In file java.security find option jdk.tls.disabledAlgorithms and delete TLSv1

Solution 2

It appears that latest update on java11 has disabled TLSv1 and TLSv1.1

Here is the detailed documentation on how to enable it again. https://aws.amazon.com/blogs/opensource/tls-1-0-1-1-changes-in-openjdk-and-amazon-corretto/

Appearently I was caught in this issue because of jdk update today, and had hard time finding it. This can help.

Solution 3

Don't update on java11. Now a days TLS1.0 is outdated. The sites using TLS 1.0 and TLS 1.1 certificates for encryption will be marked as insecure in browsers.

So better to update the Transport security Layer(TLS) version in Sql server.

Please follow the links:

https://ganeshchandrasekaran.com/connect-to-sqlserver-tls-1-2-using-dbvisualizer-and-ssms-script-s-1362438bc949

https://support.microsoft.com/en-us/topic/kb3135244-tls-1-2-support-for-microsoft-sql-server-e4472ef8-90a9-13c1-e4d8-44aad198cdbe#:~:text=SQL%20Server%202019%20has%20the,to%20enable%20TLS%201.2%20support.

Solution 4

First thing to do - Go to folder C:\Program Files\Java\jre1.8.0_291\lib\security In file java.security find option jdk.tls.disabledAlgorithms and delete TLSv1

If it still doesn't work make sure to have line

deployment.security.TLSv1=true

in file C:\Users\JavaUser\AppData\LocalLow\Sun\Java\Deployment\deployment.properties

Solution 5

You can set it in jre inside SoapUI (if you are using it): Remove "TLSv1, TLSv1.1" from "jdk.tls.disabledAlgorithms" property in file ${soapui_home}/jre/conf/securityjava.security

Share:
84,300

Related videos on Youtube

Frank Martin
Author by

Frank Martin

Updated on July 09, 2022

Comments

  • Frank Martin
    Frank Martin almost 2 years

    I am trying to run this JNLP file on Windows 10 to connect to a server (actually I am connecting to a dedicated server via KVM over IPMI or whatever it is called so I can install a new OS).

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

    Is there something I need to do in Java client to fix the error?

    enter image description here

    enter image description here

    enter image description here

  • Eytan Naim
    Eytan Naim over 2 years
    For Linux environment the file is in /usr/lib/jvm/java-11-openjdk-amd64/conf/security/java.securi‌​ty
  • circulosmeos
    circulosmeos over 2 years
    For Java 64 bits the PATH is "C:\Program Files\Java\jre...\lib\secutiry\java.security"
  • SushantPatade
    SushantPatade about 2 years
    Removing from jdk.tls.disabledAlgorithms did worked for me.