我正在使用 httplib2 调用 Amazon Web Services (AWS):
http = httplib2.Http(cache='.cache')
response, content = http.request('https://sdb.amazonaws.com/...')
但是它无法寻找 CA(我认为):
File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 1059, in request self.disable_ssl_certificate_validation)
File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 772, in __init__ context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory
我的问题:
- 我需要做些什么来配置我的操作系统和环境才能使其正常工作吗?
- 我看过很多关于确保在 Python 2 中为 SSL 构建套接字库的帖子;这适用于 Python 3 吗?
谢谢!