# Py & pip installation DIR SSLError

**URL:** <https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146>\
**Category:** Python Help\
**Created:** [September 7, 2024, 4:54am UTC](https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146 "2024-09-07T04:54:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cone-del](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cone-del/32/22381_2.png) [@cone-del](https://discuss.python.org/u/cone-del)\
**Post date:** [September 7, 2024, 4:54am UTC](https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146/1 "2024-09-07T04:54:32Z")

</div>

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’

```python
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/

```

```python
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?

---

<div class="post-metadata">

**Author:** ![barry-scott](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@barry-scott](https://discuss.python.org/u/barry-scott)\
**Post date:** [September 7, 2024, 6:29am UTC](https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146/2 "2024-09-07T06:29:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cone-del](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cone-del/32/22381_2.png) [@cone-del](https://discuss.python.org/u/cone-del)\
**Post date:** [September 7, 2024, 7:53am UTC](https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146/3 "2024-09-07T07:53:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![barry-scott](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@barry-scott](https://discuss.python.org/u/barry-scott)\
**Post date:** [September 7, 2024, 8:38am UTC](https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146/4 "2024-09-07T08:38:04Z")

</div>

> [@cone-del](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![cone-del](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/cone-del/32/22381_2.png) [@cone-del](https://discuss.python.org/u/cone-del)\
**Post date:** [September 7, 2024, 2:32pm UTC](https://discuss.python.org/t/py-pip-installation-dir-sslerror/63146/5 "2024-09-07T14:32:51Z")

</div>

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

```python
$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](https://discuss.python.org/t/use-pip-behind-restrictive-proxy/11087/7)  
And the problem with verify hostname ‘urllib3’ bug

Btw Thanks for answer
