我在Ubuntu机器上使用python setup.py sdist bdist_wheel
打包了一个python应用程序。在
我想把这些文件上传到Artifactory的代理服务器。我使用下面的绳线命令来执行此操作
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
当我运行这个命令时,我得到了以下错误
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)'),))
我已经将我的my_certs.pem
放入/usr/lib/ssl/certs/
并运行update-ca-certificates
以确保证书是最新的。在
当我试图找出SSLError是什么时,我遇到了它在_ssl.c
在cpython
(https://github.com/python/cpython/blob/master/Modules/_ssl.c)中抱怨的行
确切地说是什么意思?我不知道证书有什么问题,因为它可以很好地与我运行的其他应用程序一起工作。在
原来我的工件代理服务器有证书问题
相关问题 更多 >
编程相关推荐