Py & pip installation DIR SSLError

I had self-certification for my Windows 11 Home client but seems i still a validation for side server?

'python -m pip install — ’
’ pip install — ’

All my env and PATH has been set to ok and system can detect the -v
‘pip 24.1.2 from C:\Python312\Lib\site-packages\pip (python 3.12)’
‘Python 3.12.4’

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)'))': /simple/proxyscrape/
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(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)'))) - skipping

Violation of protocol what does mean by that?

Maybe you have a network or firewall issue.

Try browsing to https://pypi.org/simple/pip/ with your web browser.
What happens? You should see a list of files.

1 Like

I’m under the proxies and in my firewall i block anything that’s in ISP router incoming and outbound which i receive a Internet connection only

May i ask if need to turn on my RAS (Remote Access Server) which has been set to none also or something to consider when comes in SSL self-signed cert

Do you have a man in the middle (MitM) proxy that is changing the certificate seen by pip? If so you have to add your root CA used to replace the pypi certificate to your windows certificate store.

But this is no longer about a python issue.

I don’t have the MitM, i got localhost proxies,

more like in the pip configuration only and SOCKS5 misconfiguration, i was able to delete the set value for proxy in both

$env:HTTP_PROXY="http://proxy.details"
$env:HTTPS_PROXY="http://proxy.details"

IN

%APPDATA%\pip\pip.ini

I was able to follow the previous discuss
https://discuss.python.org/t/use-pip-behind-restrictive-proxy/11087/7
And the problem with verify hostname ‘urllib3’ bug

Btw Thanks for answer