简体   繁体   English

通过Twine将py文件上传到代理服务器时出现SSL错误

[英]SSL Errors when uploading py file to proxy server via Twine

I have packaged up a python application using python setup.py sdist bdist_wheel on an Ubuntu machine. 我已经在Ubuntu机器上使用python setup.py sdist bdist_wheel打包了一个python应用程序。

I want to upload these files to a proxy server of Artifactory. 我想将这些文件上传到Artifactory的代理服务器。 I am using the following twine command to do it 我正在使用以下麻线命令来做到这一点

twine upload --repository-url https://apro.example.net.au/api/pypi/example-python -u username -p password dist/* --client-cert /usr/lib/ssl/certs/my_cert.pem

When I run the command I am getting the following error SSLError: HTTPSConnectionPool(host='apro.example.net.au', port=443): Max retries exceeded with url: /api/pypi/example-python (Caused by SSLError(SSLError(336265225, '[SSL] PEM lib (_ssl.c:2959)'),)) 当我运行命令时,出现以下错误SSLError: HTTPSConnectionPool(host='apro.example.net.au', port=443): Max retries exceeded with url: /api/pypi/example-python (Caused by SSLError(SSLError(336265225, '[SSL] PEM lib (_ssl.c:2959)'),))

I have placed my my_certs.pem into /usr/lib/ssl/certs/ and ran update-ca-certificates to make sure the certificates are up to date. 我将my_certs.pem放入/usr/lib/ssl/certs/并运行update-ca-certificates以确保证书是最新的。

When I was trying to figure out what the SSLError was I came across what line it was complaining in _ssl.c in cpython ( https://github.com/python/cpython/blob/master/Modules/_ssl.c ) 当我试图弄清SSLError是什么时,我在_ssl.c中遇到了它抱怨的_ssl.c cpythonhttps://github.com/python/cpython/blob/master/Modules/_ssl.c

What does SSL_TLSEXT_ERR_OK exact mean? SSL_TLSEXT_ERR_OK确切含义是什么? I cannot figure out what is wrong with the certificate as it works fine with other applications I run against it. 我无法弄清楚证书出了什么问题,因为它可以与我针对它运行的其他应用程序正常工作。

原来我的Artifactory代理服务器存在证书问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM