Skip to content

SSL_CERT_FILE and SSL_CERT_DIR environment variables are ignoredΒ #138795

@jam-re

Description

@jam-re

Bug report

Bug description:

Hello,

Since Python 3.13, the following environment variables are no longer honored :

  • REQUESTS_CA_BUNDLE
  • SSL_CERT_FILE
  • SSL_CERT_DIR

This is problematic in a corporate environment where a custom CA must be added. This was the only reliable way to make existing code, especially external libraries, trust a custom CA. It was easy and functional, and I don't understand why this feature is no longer here.

In addition, this new behavior is not sufficiently documented, and no workaround is proposed.

Thank you

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesextension-modulesC modules in the Modules dirpendingThe issue will be closed if no feedback is providedtopic-SSLtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions