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 ned.deily
Recipients christian.heimes, ned.deily, ronaldoussoren, ugultopu
Date 2016-12-25.03:11:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1482635489.74.0.0040886668584.issue29065@psf.upfronthosting.co.za>
In-reply-to
Content
From the output you supplied, you appear to be using Python 3.6.0 from the python.org macOS binary installer.  Please read the ReadMe.rtf file for the installer which should have been displayed when you installed Python 3.6; a copy of it is also installed in /Applications/Python 3.6.  You can read it by double-clicking on the icon in the Finder or by entering the following shell command:

open "/Applications/Python 3.6/ReadMe.rtf"

In it, the section on "Certificate verification and OpenSSL" notes that, as of the 3.6.0 installer, the Python supplied no longer links with the deprecated Apple-supplied system OpenSSL libraries but rather supplies a private copy of OpenSSL 1.0.2 which does not automatically access the system default root certificates.  "For 3.6.0, a sample command script is included in /Applications/Python 3.6 to install a curated bundle of default root certificates from the third-party certifi package (https://pypi.python.org/pypi/certifi).  If you choose to use certifi, you should consider subscribing to the project's email update service to be notified when the certificate bundle is updated."  You can run the command script by double-clicking on it or by entering the shell command:

open "/Applications/Python 3.6/Install Certificates.command"

If necessary, you can adapt the script for other options rather than using the certifi-supplied bundle.  For later releases, other standard options will likely be provided.

I don't understand your comment that using the system openssl command doesn't work, e.g. "openssl s_client -connect www.python.org:443".  The output you supply appears to show it working as expected.  But, in any case, that's not relevant to the Python 3.6 usage as different OpenSSL versions and libraries are being used.

Also note that this description only applies to the Python 3.6 supplied by the python.org macOS installer.  mscOS Pythons supplied by third-party distributors likely link with each distributor's version of OpenSSL and follow their root certificate policies.
History
Date User Action Args
2016-12-25 03:11:29ned.deilysetrecipients: + ned.deily, ronaldoussoren, christian.heimes, ugultopu
2016-12-25 03:11:29ned.deilysetmessageid: <1482635489.74.0.0040886668584.issue29065@psf.upfronthosting.co.za>
2016-12-25 03:11:29ned.deilylinkissue29065 messages
2016-12-25 03:11:28ned.deilycreate