【发布时间】:2018-11-03 07:23:55
【问题描述】:
我在 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) 中抱怨的是哪一行
SSL_TLSEXT_ERR_OK 到底是什么意思?我无法弄清楚证书有什么问题,因为它可以与我针对它运行的其他应用程序一起正常工作。
【问题讨论】:
标签: python ssl-certificate pypi twine