-
Notifications
You must be signed in to change notification settings - Fork 308
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
SSLError while uploading to Nexus repository #328
Comments
@vidyadharms It seems like your server's TLS configuration is at fault. What do you get when you just try to connect to it with something like |
It is not possible to disable certificate verification in Twine. The point of twine is to be a tool that properly handles certificate verification. Allowing folks to turn it off seems antithetical to the point. |
@vidyadharms Here's my suggestion:
|
@vidyadharms I'm going to close this issue because I'm fairly confident that the problem here lies with your internal setup. I may be wrong; you can reopen it and @-mention me. Twine is a volunteer-run project; if you are in a company that uses Twine, I suggest you consider making a corporate donation to the Packaging Working Group of the Python Software Foundation, which will help support maintenance and improvements for Python packaging tools. |
@di What do you get when you just try to connect to it with something like openssl s_client -connect nexus.mycompany.com:8444? [vids@l5123t ~]$ openssl s_client -connect nexus.mycompany.com:8444
|
@vidyadharms Here is the problem:
The server needs to send a valid certificate. |
Hello guys. |
The lack of this has been a *perennial* thorn for people behind corporate TLS MITM ALG proxies; when it's soluble, it's still annoying, and sometimes the proxy applications don't use a stable root bundle, rendering the situation kinda insoluble. - pypa#328 - pypa#387 - pypa#536 - pypa#740 - pypa#741 - pypa#835 - pypa#915 - pypa#1025
Hi,
We have setup in-house Nexus repository for custom python packages and using below command, we were able to upload the package to it before SSL implementation on Nexus Server.
twine upload --repository-url http://nexus.mycompany.com:8081/repository/poc-project_python-packaging/ dist/*
After enabling SSL on the Nexus server, the package upload failed with SSLError, hence tried using below command with .pem file given by our Admin team.
twine upload --repository-url https://nexus.mycompany.com:8444/repository/poc-project_python-packaging/ dist/ --cert /usr/local/vsatyp/certificate.pem*
However package upload fails and gives error as below:
_Uploading distributions to https://nexus.mycompany.com:8444/repository/poc-project_python-packaging/
Uploading modelOperationalization-1.0-py2.py3-none-any.whl
0%| | 0.00/7.69k [00:00<?, ?B/s]
SSLError: HTTPSConnectionPool(host='nexus.mycompany.com', port=8444): Max retries exceeded with url: /repository/poc-project_python-packaging/ (Caused by SSLError(SSLError(0, 'unknown error (ssl.c:3566)'),))
I tried searching lot but not able to get the detailed error. Can anyone please look into it urgently and suggest a solution?
Is it possible to disable the certificate verification in Twine?
Thanks in advance.
The text was updated successfully, but these errors were encountered: