aspose file tools
The moose likes JBoss and the fly likes SSL connection between JBOSS & MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "SSL connection between JBOSS & MySQL" Watch "SSL connection between JBOSS & MySQL" New topic
Author

SSL connection between JBOSS & MySQL

vu anh
Greenhorn

Joined: Oct 14, 2012
Posts: 2
hello, everyone!
I have a question and hope everyone will help me!
I want to create an SSL connection between CA (JBoss 5.1 - EJBCA 4.0.12 - JDK 6) and MySQL, how do I do?
thank you very much!
vu anh
Greenhorn

Joined: Oct 14, 2012
Posts: 2
oh, thank you verry much!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

You need to do a few things:

1) Configure MySQL to use SSL: http://dev.mysql.com/doc/refman/5.0/en/ssl-connections.html

2) Change the URL *-ds.xml file to use the URL that comes out of step 1

3) Add the private key (from the credentials crated in step 1) to the credential store used by JBoss AS (one way to do this is to add it to the jdk_home/jre/lib/security/jssecacerts file, but there are other possibilities also). The important thing is that the JVM running JBoss AS needs the private key to be able to do the SSL communication.

Caveat: the above is an assumption based on what I do to do to get Java apps to talk to SSL web services; I have never actually set up SSL with MySQL but I suspect the steps are similar.


JBoss In Action
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: SSL connection between JBOSS & MySQL
 
Similar Threads
SSL authentication without CA
ICE practice question (SSL connection)
SSL Connection Pool between HTTP server and Application server
Connecting via a specific Socket?
SSL connection: clientAuth(true) vs useClientMode(false)