Right. It’s more or less the same issue though as I need to actually change the 
CA file in use after the program starts by setting the env. The correct file to 
use is listed in a large config file that needs to be parsed.

I’ll file an issue.

Thanks,

-Dan Nugent
On Mar 20, 2021, 13:55 -0400, Antoine Pitrou <[email protected]>, wrote:
> On Fri, 19 Mar 2021 12:38:14 -0400
> Daniel Nugent <[email protected]> wrote:
> > At the moment, if you load up the pyarrow.fs module, it initializes the ca 
> > configurations from the ssl module.
> >
> > I have a situation where I need to change those at runtime. At the moment, 
> > it looks like these can only be set once when the pyarrow.fs module is 
> > loaded. Is it possible to modify these values after the initialization has 
> > occurred? It’s fine that they are global, I just have to load a Certificate 
> > file at a later point.
>
> Not currently, but that's a reasonable feature request.
> Would you like to open an issue?
> https://arrow.apache.org/docs/developers/contributing.html#report-bugs-and-propose-features
>
> Note that in the meantime, you may be able to use environment variables
> to point to the right CA file, for example:
>
> SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
>
> See
> https://docs.python.org/3/library/ssl.html#ssl.get_default_verify_paths
>
> Regards
>
> Antoine.
>
>

Reply via email to