-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Using a private source repository with login and no verify_ssl the SSL verfication fails #2459
Comments
I think I found the culprit: I think the line: As for the other list of sources. Is there a specifc reason why this is different then for other sources ? If yes than an alternative would be to configure a second source as a private repo and keep the first pypi source in the Pipfile. |
Thanks for tracking this down, I'm not totally sure -- @uranusjr do you remember? |
Ah… I think I was trying to be too cute with urlparse’s SplitResult. I’ll look into this later tonight. |
I do not know about the |
It’s a bit complicated because of how the parser works. But the split is there for ports I assume? You might want |
Checked the API, |
I wonder if this is related to #2389 also |
- Fixes #2459 and #2389 Signed-off-by: Dan Ryan <[email protected]>
- Fixes #2459 and #2389 Signed-off-by: Dan Ryan <[email protected]>
When using a private repository with login and setting verify_ssl = false the resulting pip command is not correct and the installation of a package fails.
$ python -m pipenv.help output
Pipenv version:
'2018.6.25'
Pipenv location:
'/usr/lib/python3.6/site-packages/pipenv'
Python location:
'/usr/bin/python'
Other Python installations in
PATH
:3.6
:/usr/bin/python3.6m
3.6
:/usr/bin/python3.6
3.6
:/bin/python3.6
3.6.5
:/usr/bin/python
3.6.5
:/bin/python
3.6.5
:/usr/bin/python3
3.6.5
:/bin/python3
PEP 508 Information:
System environment variables:
USERDOMAIN
OS
COMMONPROGRAMFILES
PROCESSOR_LEVEL
PSModulePath
CommonProgramW6432
CommonProgramFiles(x86)
NetHome
MSYSCON
LANG
TZ
MSYSTEM_CARCH
HOSTNAME
PUBLIC
OLDPWD
CONFIG_SITE
WD
CONTITLE
MSYSTEM_CHOST
UATDATA
LOGINSHELL
USERNAME
LOGONSERVER
PROCESSOR_ARCHITECTURE
tmp
LOCALAPPDATA
COMPUTERNAME
USER
!::
DEFLOGDIR
SYSTEMDRIVE
USERPROFILE
PATHEXT
SYSTEMROOT
USERDOMAIN_ROAMINGPROFILE
PROCESSOR_IDENTIFIER
PWD
HOME
TMP
MSYSTEM_PREFIX
https_proxy
http_proxy
LocalShare
!C:
PROCESSOR_REVISION
USERDNSDOMAIN
PROMPT
NUMBER_OF_PROCESSORS
ProgramW6432
COMSPEC
APPDATA
SHELL
TERM
WINDIR
ProgramData
SHLVL
PRINTER
PROGRAMFILES
MANPATH
ORIGINAL_TEMP
ORIGINAL_TMP
ALLUSERSPROFILE
TEMP
temp
MSYSTEM
SESSIONNAME
ProgramFiles(x86)
PATH
PS1
HOMEDRIVE
PKG_CONFIG_PATH
INFOPATH
HOMEPATH
ORIGINAL_PATH
LocalHome
VS140COMNTOOLS
_
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/
SHELL
:/usr/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/USER
Contents of
Pipfile
('/home/USER/Pipfile'):Contents of
Pipfile.lock
('/home/USER/Pipfile.lock'):Expected result
When using
USER="name" PASS="test" pipenv install numpy -v
I am expecting to have the numpy package installed.Note that the
USER
andPASS
variables are set in my Pipfile (see details above)Actual result
When using the command the SSL authentication fails. And this is not surprising given the corresponding generated pip command obtained using the
-v
option:/home/USER/.local/share/virtualenvs/USER-_5wChY8u/bin/pip" install --verbose "numpy" -i https://name:[email protected]/pypi/simple --trusted-host name --exists-action w
As can be seen the
trusted-host
parameter is not the server name but the user name...Additional comments and questions
verify_ssl = false
because I could not find any certificate option (I triedcert = path/to/cert/pem/format
without success - it does not appear as a--cert
pip option)The text was updated successfully, but these errors were encountered: