fixed error when using ssl transport with basic auth and without a cert file