Python 3.6 CERTIFICATE_VERIFY_FAILED

python 3에서 let’s encrypt가 설정된 서버로 접속을 시도했더니

ssl 핸드쉐이킹오류가 남.

아래처럼 cert를 업그레이드 해주면 이상없음

/Applications/Python 3.6/./Install\ Certificates.command
— pip install –upgrade certifi
Collecting certifi
Downloading certifi-2017.7.27.1-py2.py3-none-any.whl (349kB)
100% |████████████████████████████████| 358kB 1.7MB/s
Installing collected packages: certifi
Successfully installed certifi-2017.7.27.1
— removing any existing file or link
— creating symlink to certifi certificate bundle
— setting permissions
— update complete