-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Option to disable SSL verify #1556
Copy link
Copy link
Closed
Labels
kind/featureFeature requests/implementationsFeature requests/implementations
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
I'm trying to use poetry in a corporate environment. We have a private server and index for packages, and conda is setup to not verify SSL. Unfortunately, I didn't find a similar option or configuration for Poetry, so when I try to install a package with Poetry, it fails (SSLError).
I managed to get it to work by changing two lines in
...to this:
def _download(self, url, dest): # type: (str, str) -> None
- r = self._session.get(url, stream=True)
+ r = self._session.get(url, stream=True, verify=False)
with open(dest, "wb") as f:
for chunk in r.iter_content(chunk_size=1024):
if chunk:
f.write(chunk)
def _get(self, endpoint): # type: (str) -> Union[Page, None]
url = self._url + endpoint
- response = self._session.get(url)
+ response = self._session.get(url, verify=False)
if response.status_code == 404:
return
return Page(url, response.content, response.headers)Obviously we would use a value specified in the config.toml instead of a literal False.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureFeature requests/implementationsFeature requests/implementations