将python软件包上传到本地Artifatory存储库时出现证书错误

时间:2019-11-22 03:56:03

标签: python ssh artifactory pypi

我们在公司Artifactory服务器上有本地PyPI商店。我按照“设置我”对话框中列出的步骤进行操作。当我发出命令: python setup.py sdist upload -r local 时,出现屏幕错误:

running sdist
running egg_info
writing srcsrv.egg-info/PKG-INFO
...
running upload
Submitting dist/mypackage-1.0.0.tar.gz to https://artifactory.corpzone.com/artifactory/api/pypi/mypackage-local
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)>
WARNING: Uploading via this command is deprecated, use twine to upload instead (https://pypi.org/p/twine/)
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)>

我正在通过VPN连接到公司网络的Mac上构建和运行。如图所示,我在.pypirc文件中输入了正确的凭据。我使用与浏览器中相同的凭据。我尝试发出一条麻线命令,但此命令得到405响应。

有什么想法可以提供私人证书吗?

0 个答案:

没有答案