forked from pool/python-pip
This commit is contained in:
parent
e9c5e7d690
commit
188c421846
@ -11,3 +11,20 @@ Index: pip-24.2/src/pip/_vendor/requests/adapters.py
|
|||||||
# Bypass default SSLContext creation when Python
|
# Bypass default SSLContext creation when Python
|
||||||
# interpreter isn't built with the ssl module.
|
# interpreter isn't built with the ssl module.
|
||||||
_preloaded_ssl_context = None
|
_preloaded_ssl_context = None
|
||||||
|
Index: pip-24.2/src/pip/_internal/cli/index_command.py
|
||||||
|
===================================================================
|
||||||
|
--- pip-24.2.orig/src/pip/_internal/cli/index_command.py
|
||||||
|
+++ pip-24.2/src/pip/_internal/cli/index_command.py
|
||||||
|
@@ -43,7 +43,11 @@ def _create_truststore_ssl_context() ->
|
||||||
|
return None
|
||||||
|
|
||||||
|
ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
|
||||||
|
- ctx.load_verify_locations(certifi.where())
|
||||||
|
+ try:
|
||||||
|
+ ctx.load_verify_locations(certifi.where())
|
||||||
|
+ except FileNotFoundError:
|
||||||
|
+ logger.warning("Disabling truststore because of missing certificates")
|
||||||
|
+ return None
|
||||||
|
return ctx
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user