It turned out that ca_certs is missing. The problem is resolved by replacing
client = httplib2.Http()
on line 42 and 52 allauth / socialaccount / requests.py with
client = httplib2.Http(ca_certs=PATH_TO_YOUR_CERT_FILE)
CERT_FILE will be the cacert.pem file in the certifi module (can be installed via the pip module or macports, etc.).
It seems like an ugly hack, hope for a better solution.
source share