Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JTDS encryption using SSL

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

A java servlet I maintain connected to a SQL server 2005 database and we connected fine using the sqljdbc.jar in Tomcat/lib and was encrypting using SSL. The interrogation occurred using hibernate and JNDI via Tomcat 7. However we had to migrate the database to SQL server 2008 R2 on a new server and the connection would no longer work. I ensured the credentials were fine for the new server by successfully connecting using SQL Server Management Studio. I found I could make a successful connection using JTDS but now the SSL encryption does not work even when I add the "ssl=require" attribute to the JNDI's URL. For example;

jdbc:jtds:sqlserver://[SERVER]/[DATABASE];ssl=require;

I also tried ssl=authenticate, but that also did not work. How do I get SSL encryption to work using JTDS?

Thanks in advance

ajfarroll

 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic