Client key exchange
This is the first message that is sent by the client after it receives the server hello done message.
With this particular message, the pre-master secret is set either by transmission of DH parameters needed to compute the secret or by sending the RSA-encrypted secret.
If RSA is being used, then the client will generate a pre-master secret and encrypt it with the public key, which it finds in the server's certificate and sends the result back to the server.
The server will decrypt the pre-master secret with the help of the server's private key, which is then used to generate the master secret with the help of clienthello.random and serverhello.random exchanged in the previous message.
This master secret is the key that ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access