Samples JDK
Classes
Package com.freemindcafe.socket.ssl.sample5

Server has clients public certificate but it also has additional serverkey1. This keys public certificate is not imported in clients store. We use custom key manager to select serverkey. If there is no custom key manager, key selection is based on some hashing algorithm which will return the keys in random order. More...

Classes

class  EchoClientTest
 
class  EchoServerTest
 

Detailed Description

Server has clients public certificate but it also has additional serverkey1. This keys public certificate is not imported in clients store. We use custom key manager to select serverkey. If there is no custom key manager, key selection is based on some hashing algorithm which will return the keys in random order.

Setup

Generate the Client and Server Keystores

Install the client's public certificate in to the server's keystore

Export the Server's Public Certificate and Import it in to the client's Keystore

Generate a new alias serverkey1

Check keystore contents