encryption handshake not funcitoning