use the passed ca_cert
if there is no ca_cert passed and the provider is configured, use the pinned ca cert when the autoconf parameter is true.
if there is no ca_cert passed and the provider is configured, use the pinned ca cert when the autoconf parameter is true.