macOS 10.12.5
在 Python 3.6 及以上的版本中,直接发送 HTTPS 请求,会出现以下问题
[SSL: CERTIFICATE_VERIFY_FAILED]
这个问题兜一圈才注意到 Python 安装目录下 ReadMe.rtf 中说明了这个问题
Certificate verification and OpenSSL
****NEW**** This variant of Python 3.6 now includes its own private copy of OpenSSL 1.0.2. Unlike previous releases, the deprecated Apple-supplied OpenSSL libraries are no longer used. This also means that the trust certificates in system and user keychains managed by the *Keychain Access *application and the security command line utility are no longer used as defaults by the Python ssl module. 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