So far what I understand:
- Sender starts the handshake with server.
- Server generates a pair of Public and Private key using asymmetric encryption and re-encrypt the Public key alone using symmetric encryption. And passes the Public key to the sender.
- Sender encrypt the message using the Public key and sends the encrypted message to server.
- Server decrypt the message using symmetric encryption and then decrypt the message again using the Private key.
Is this the right way how a SSL encryption works?? Please correct me.