What is SSL handshake and how it works?