This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jeff Berkowitz
Recipients Jeff Berkowitz, ned.deily, ronaldoussoren
Date 2019-11-27.02:30:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574821857.22.0.986895903547.issue38926@roundup.psfhosted.org>
In-reply-to
Content
After using the Python-supported installer to install 3.8.0 on my employer-owned Mac running High Sierra (10.13.6), the 'Install Certificates.command' had no apparently effect on the behavior of Python.

The behavior before executing the script was that a Python program using urllib3 was unable to verify that public certificate of github.com. Using curl, I could download via the desired URL. But the Python program could not, consistently throwing SSL verify errors instead.

I ran the command script several times. I verified that the symlink cert.pem was created in /Library/Frameworks/Python.framework/Versions/3.8/etc/openssl and that it contained "../../lib/python3.8/site-packages/certifi/cacert.pem" and I verified that the latter file had content (4558 lines) and was readable. And that it did contain the root cert for Github.

But despite that and despite multiple new shell windows and so on, I could never get Python to regard the certs. I eventually worked around this by: export SSL_CERT_FILE=/etc/ssl/cert.pem. After this, the Python program using urllib3 could verify Github.com's public cert. But as I understand things, this env var is actually regarded by the OpenSSL "C" library itself, not Python.(?) Which, if true, raises the question of why this was necessary.

Of course, there's quite likely something in my environment that is causing this. But it would be nice to know what.
History
Date User Action Args
2019-11-27 02:30:57Jeff Berkowitzsetrecipients: + Jeff Berkowitz, ronaldoussoren, ned.deily
2019-11-27 02:30:57Jeff Berkowitzsetmessageid: <1574821857.22.0.986895903547.issue38926@roundup.psfhosted.org>
2019-11-27 02:30:57Jeff Berkowitzlinkissue38926 messages
2019-11-27 02:30:56Jeff Berkowitzcreate