tls: fix server Handshake