javax.net.ssl.keyStore multiple IPs

J

jva02

Hi,
I'd like to open up two SSL listeners in a single process, and I want
each of them to have their own certificate. There's only one system
property for this. Am I missing something? I've tried setting the
system property to one certificate and then creating a listener... then
reseting the system property to a different certificate, and opening
the 2nd listener. That didn't work. Is that the right idea and I just
screwed up the implementation, or is there another way to do it?
Thanks
John
 
E

EJP

Hi,
I'd like to open up two SSL listeners in a single process, and I want
each of them to have their own certificate. There's only one system
property for this. Am I missing something? I've tried setting the
system property to one certificate and then creating a listener... then
reseting the system property to a different certificate, and opening
the 2nd listener. That didn't work. Is that the right idea and I just
screwed up the implementation, or is there another way to do it?

Just manually initialize two different SSLContexts with different
keystores, as shown in the JDK Javadoc/Guide to features/Security/JSSE
Reference Guide, and get different SSLServerSocketFactories.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top