Trying to make the client support SSL... Not easy...