The main steps in an SSL handshake are as follows:
1. The client sends a message to the server, asking to begin the SSL handshake process.
2. The server responds with a message that includes the server’s SSL certificate.
3. The client verifies the server’s SSL certificate.
4. The client generates a key that will be used to encrypt all further communication with the server.
5. The client sends the key to the server, encrypted with the server’s public key.
6. The server decrypts the key using its private key, and then uses the key to encrypt all further communication with the client.