ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Setting up SSL with Java client authentication

Post new topic  Reply to topic
 Setting up SSL with Java client authentication « View previous topic :: View next topic » 
Author Message
GaryGWood
PostPosted: Tue Oct 21, 2003 10:40 am    Post subject: Setting up SSL with Java client authentication Reply with quote

Apprentice

Joined: 14 Oct 2003
Posts: 48
Location: Austin, TX

Follow instructions for obtaining or generating a digital certificate and setting up the MQ server found at http://www7b.software.ibm.com/wsdd/techjournal/0211_yusuf/yusuf.html

In the section on configuring the Java application, I did not use the default the default keystore, JAVA_HOME\jre\lib\security\cacerts. Instead I setup a truststore (details in step 2 on Kareem’s page).

Once you have imported the certificates into the truststore, we veer away from Kareem’s JMS Client instructions. In your Java application you will need to add the following lines:

Code:
System.setProperty("javax.net.ssl.trustStore","C:\\ssl\\jmskeystore"); //Path to trustStore
System.setProperty("javax.net.ssl.trustStorePassword", "changeit"); //keyStore password
System.setProperty("javax.net.ssl.keyStore","C:\\ssl\\jmskeystore");  //Path to keyStore
System.setProperty("javax.net.ssl.keyStorePassword", "changeit"); //keyStore password


Notice that I have set my truststore and keystore to be the same file. I figured it would be easier to manage but it’s not necessary. You are now setup for SSL communication with client authentication.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Setting up SSL with Java client authentication
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.