I'm quite new to ssl, but i managed to setup server and client certification on my java application. I generated the keystores and truststore using the keytool. This works quite nicely.
Now i'm looking for ways to add a new client certificate to my server truststore, if this is done my server will accept the connection from the new client.
My current plan is:
Sounds simple, but when you think of it a few things can go wrong:
Thanks for the ideas!
Or does the certificate only contain the public information and is the "private" information still in the keystore?
Yes.
is it a wise thing to implement my own TrustManager on server side so that i can manage trusted client certificate easily?
No. You should let the truststore system do what it wants to do for authentication, and then use a handshake listener to get the peer certificate to authorise it. Don't confuse or conflate these two steps: they are distinct, and both parts are required.