websocket_client: Fix problem when in SSL mode
Improve SSL client support