`SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables are ignored
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Bug report
Bug description:
Hello,
Since Python 3.13, the following environment variables are no longer honored :
REQUESTS_CA_BUNDLESSL_CERT_FILESSL_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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior on Python 3.13 for Windows with REQUESTS_CA_BUNDLE, SSL_CERT_FILE, and SSL_CERT_DIR set. Trace how certificate configuration is handled and document a working fix or workaround so existing code can trust a custom CA again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100