tls handshake

Performed a handshake for TLS