fix SSL handshake alert: unrecognized_name error