Skip to content

Conversation

@omenos
Copy link

@omenos omenos commented Dec 16, 2025

requests defaults to using the certificate trust provided by certifi, which precludes the inclusion of custom trusted certificates. Rather than needing to set the REQUESTS_CA_BUNDLE environment variable in every shell/config, use truststore to override the way certs are read and automatically use the system trust store.

This will only happen transparently in environments using Python >= 3.10 and is effectively a noop in any other scenario.

@omenos
Copy link
Author

omenos commented Dec 16, 2025

Copying over my comment from ansible-collections/vmware.vmware#295 after Mike noted the behavioral change:

I just did a quick check (on RHEL) and if SSL_CERT_FILE is specified, it will be used rather than the system store.

So it's a bit of a behavior reversal, rather than:

  • Default: certifi
  • REQUESTS_CA_BUNDLE: selected bundle

it becomes:

  • Default: system store via truststore
  • SSL_CERT_FILE: selected bundle

Whether or not this project views that as a breaking change is not something I can define.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant