Multiple SSL requests creating problem

I am developing a java servlet as a gateway between clients and SSL enabled webservers.

I am using JSSE version for connecting to different SSL enabled servers

My Requirement is to connect to mulltiple SSL enabled servers through java program .

Actually after successfully log on to first site (any site first time) the program gives

Exception for other site. I have to restart the server to logon to the other

site.

I have seen this problem by using the following

1)JRUN

2)TOMCAT

The exception which I am getting is.

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

Following are the System properties settings

java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");

System.setProperty("javax.net.ssl.trustStore","mystore");

Do I need to use different JVM as a solution to this problem ?

There should be some other solution for this problem.

Please help me out of this problem

Thanx in advance

[1176 byte] By [istikhar99] at [2007-9-26 5:33:28]
# 1
Hi all,I have solved this problem.ThanxIstikhar
istikhar99 at 2007-6-29 19:44:42 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2
If you don't mind, can you let us know how you solved your problem ?
neville_sequeira at 2007-6-29 19:44:42 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 3
I am having the same problem. Please let me know how did you solve the problem. It's urgentThanksDD
DDMishra at 2007-6-29 19:44:42 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 4
ya..why not share you solution here?... it must be useful for others...:-)
java_kt at 2007-6-29 19:44:42 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 5

Hi Everybody,

I have the same problem but with the keystore not with the truststore. when I trying to change the keystore the connection fail. I mean that the first connection succeeded, but the second failed.

I read in a tutorial that I have to use the following property: System.setProperty("networkaddress.cache.ttl","0");

but it does not work also.

If anybody have any idea please send it for me. and I will be grateful for you.

Regards

Haitham at 2007-6-29 19:44:42 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...