workaround for handshake alert: unrecognized_name