Fixed SSL handshake error issue