Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSL connection between JBOSS & MySQL

 
vu anh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh, thank you verry much!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic