Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSL server: control the alias used for server certificate?

 
Sol Mayer-Orn
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic