File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes SSL server: control the alias used for server certificate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "SSL server: control the alias used for server certificate?" Watch "SSL server: control the alias used for server certificate?" New topic
Author

SSL server: control the alias used for server certificate?

Sol Mayer-Orn
Ranch Hand

Joined: Nov 13, 2002
Posts: 311
Hi,

I'd appreciate help with the following.

When you create an SSL server socket, it needs a certificate (to prove its identity), and for this it relies on a keystore:
System.setProperty("javax.net.ssl.keyStore", "c:/mystore");

My question is, what if the keystore contains *several* certificates ?
Eg:
keytool -import -alias AAA -file cert1.cer -keystore mystore
keytool -import -alias BBB -file cert2.cer -keystore mystore

Which certificate would the server use ?
And is there a way to control the alias it would use ?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSL server: control the alias used for server certificate?
 
Similar Threads
CXF keystore question
Failed to Establish Chain from Reply
RMI - SSL - VeriSign Certificates
Weblogic SSL certificate
SOAP over HTTPS / SSL