Problem loading different certificates for SSL

View: New views
1 Messages — Rating Filter:   Alert me  

Problem loading different certificates for SSL

by PkS-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


We have couple of applications in the same JVM (a server). Both applications
use different certificates for SSL.
Both applications use default SSL factory javax.net.ssl.SSLSocketFactory.
The thing with the implementation of this class is that it loads the
SSLContext just once.
So, the application that creates an SSL connection first wins. The
application that tries to create an SSL connection later cannot do so as the
certificates of the first application are loaded.

One of the applications is an LDAP client and uses
"java.naming.ldap.factory.socket" property. This is the client I can
rewrite. I cannot recode the other client.


How can I specify an SSL context explicitly? I tried writing my own
SSLSocketFactory but SSLSocket is abstract.


Thanks,
PkS

===========================================================================
To unsubscribe, send email to listserv@... and include in the body
of the message "signoff JNDI-INTEREST".  For general help, send email to
listserv@... and include in the body of the message "help".