classification
Title: distutils upload: SSL Error when uploading package to your own pypi
Type: behavior Stage:
Components: Distutils Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, javidr
Priority: normal Keywords:

Created on 2018-06-27 12:28 by javidr, last changed 2018-07-11 14:20 by vstinner.

Messages (2)
msg320573 - (view) Author: javi (javidr) Date: 2018-06-27 12:28
Hi

I am trying to upload a package to a local Pypi repo i have created, and when trying to do it, im having an ssl error since this repository is under a self signed certificate

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)>

Using pip, there is an option, --trusted-host, that you can use to ignore ssl validation. Is there a similar option like that when using distutils?

The command i am running is python setup.py sdist upload -r myrepo

Thanks
msg320727 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2018-06-29 18:34
I don’t think there is an option (see the --help command), but on localhost you could use http instead of https.  Otherwise it’s strongly recommended to use twine to upload.
History
Date User Action Args
2018-07-11 14:20:23vstinnersettitle: SSL Error when uploading package to your own pypi -> distutils upload: SSL Error when uploading package to your own pypi
2018-07-11 07:56:14serhiy.storchakasettype: crash -> behavior
2018-06-29 18:34:14eric.araujosetmessages: + msg320727
2018-06-27 12:28:06javidrcreate