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.
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