mac出現ssl錯誤問題 - jenhaoyang/backend_blog GitHub Wiki

Open a terminal and take a look at:

/Applications/Python 3.6/Install Certificates.command

Python 3.6 on MacOS uses an embedded version of OpenSSL, which does not use the system certificate store. More details here.

(To be explicit: MacOS users can probably resolve by opening Finder and double clicking Install Certificates.command)

參考:
https://stackoverflow.com/a/41692664
https://bugs.python.org/issue28150