File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Check SSL Encryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Check SSL Encryption" Watch "Check SSL Encryption" New topic

Check SSL Encryption

A Farroll
Ranch Hand

Joined: Oct 26, 2012
Posts: 43

We have a Java web services application which interrogates a SQL server 2005 database. If I have imported a client SSL certificate from the SQL Server to the java keystore and updated the JNDI connection in Tomcats context.xml file and the connector in the server.xml file, how can I check that the communication is indeed being encypted?

Thanks in advance


A Farroll
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17417

I don't think that's how it's supposed to work. The Tomcat keystore is primarily for holding keys that clients use to communicate with Tomcat, not that Tomcat apps or components use as clients to other servers.

Regardless, you'd have to configure any secure communications between the database connection pooler and the database as part of configuring the connection pooler. That would be done by setting the appropriate JDBC Connection properties for the pool. This should help:

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Check SSL Encryption
It's not a secret anymore!