I am unable to connect to a SQL 2012 database when it requires TLS1.2 encrytion. Using a string similar to "jdbc:jtds:sqlserver://servername:1433/databasename;domain=domainname;useNTLMv2=true;ssl=request" The server responds with " The connection test failed: Unable to open a connection to the database: Network error IOException: Connection reset". I am able to connect to a second database which does not require the TLS encryption.
I have a similar problem using jtds 1.3.1 to connect to SQL 2012 from a jjava application running on linux. The connection succeeds using a simple string "jdbc:jtds:sqlserver://servername:14334/databasename;instance=instancename;domain=domainname;useNTLMv2=true" but fails when using a similar string connecting to a second database. The second DB forces TLS encryption. The string for the second connection also has the "ssl=request" parameter.