I want to upload a Python package to a secured (HTTPS) Artifactory server from my machine using Twine.
First, using the following:
twine upload --verbose \
--repository-url https://URL/artifactory/api/pypi/PATH \
--username XX \
--password XX \
dist/*
I get the following error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='URL', port=443): Max retries exceeded with url: /artifactory/api/pypi/PATH (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))
After a big of digging, I found this little solution. So I downloaded the cert.pem file and provided it to my upload command with:
--cert ../../bin/cert.pem
Which still gives me the following error:
certificate verify failed: unable to get local issuer certificate
How can I solve this issue correctly (I would like NOT TO disable SSL check).