I am creating adapter for work with web-service, using proxy and ssl connection, and Have one problem with understanding Handshaking mechanism. I will explain one example.
My actions:
- Make server. Create private key with keytool. create
.cer
file for it. - Make client. Create same for him.
- Exchange
.cer
with each other, import in keystores other side's certificate. - Create connection. Ok. Everything is ok.
- In server's keystore I gen new private key.
Question: which pr_key
do server use for handshaking?