-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--cert and global.cert not working #9614
Comments
Didn't saw it yesterday... Possible Duplicate of #9568 |
Have you used a system proxy? |
Yes, proxy is set as a system proxy. Without a protocol prefix. |
Meanwhile i manged to get pip working using the --cert paramter with the ssl interception certificate. |
pip version
21.0.1
Python version
3.9.1
OS
Windows 10 1909
Additional information
SSL Interception Proxy
Description
After updating to version 21.0.1 pip seems not to use provided certificates for ssl.
Expected behavior
pip should still use the provided certificate.
How to Reproduce
After a fresh install of Python 3.9.1 i set global.cert to "A:\path\to.crt"
The entry was successfully written to "C:\Users<user>\AppData\Roaming\pip\pip.ini".
So i updated pip from version 20.2.3 to 21.0.1 with "pip install --upgrade pip" which works fine.
But if i issue the command again i receive SSL Errors:
Output
PS C:\Python39> .\python.exe -m pip config set global.cert A:\path\to.crt
Writing to C:\Users<user>\AppData\Roaming\pip\pip.ini
PS C:\Python39> .\python.exe -m pip config list
global.cert='A:\path\to.crt'
PS C:\Python39> .\python.exe -m pip install --upgrade pip
Collecting pip
Using cached pip-21.0.1-py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-21.0.1
PS C:\Python39> .\python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\python39\lib\site-packages (21.0.1)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'))': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'))': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'))': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'))': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'))': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'))) - skipping
PS C:\Python39>
Code of Conduct
The text was updated successfully, but these errors were encountered: