私はcommand-line Python starter for Google Plus API作業を取得しようとしているが、認証が完了した後、私はこのエラーに遭遇上で実行されているGoogleのプラスAPIコマンドラインPythonのスターターキットでSSLエラーを解決するために探している相手:localhostの
ssl.SSLError: [Errno 185090050] _ssl.c:336: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib
私はPython 2.7 on Ubuntu 11.04
を実行しています。 APIはを使用してリクエストを送信します。私はlocalhost
のスターターキットを外しています。
はここで、端末のダンプです:
- 手動でコピーcacerts.txt
http://httplib2.googlecode.com/hg-history/6525cadfde53279479533c1235e2661f5c147afc/python2/httplib2/cacerts.txt
から /usr/lib/python2.7/dist-packages/httplib2
へ:私はこの作業を取得しようとした
物事
を最新のveに更新しましたrsion 0.7.1Traceback (most recent call last): File "/home/vijay/Downloads/google-plus-python-starter/cli/plus_cli.py", line 114, in <module> main() File "/home/vijay/Downloads/google-plus-python-starter/cli/plus_cli.py", line 62, in main credentials = authorize_self(settings.CLIENT_ID,settings.CLIENT_SECRET) File "/home/vijay/Downloads/google-plus-python-starter/cli/plus_cli.py", line 48, in authorize_self credentials = run(flow, storage) File "/home/vijay/Downloads/googleapi/oauth2client/tools.py", line 146, in run credential = flow.step2_exchange(code) File "/home/vijay/Downloads/googleapi/oauth2client/client.py", line 698, in step2_exchange headers=headers) File "/home/vijay/Downloads/googleapi/httplib2/__init__.py", line 1436, in request (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey) File "/home/vijay/Downloads/googleapi/httplib2/__init__.py", line 1188, in _request (response, content) = self._conn_request(conn, request_uri, method, body, headers) File "/home/vijay/Downloads/googleapi/httplib2/__init__.py", line 1123, in _conn_request conn.connect() File "/home/vijay/Downloads/googleapi/httplib2/__init__.py", line 890, in connect self.disable_ssl_certificate_validation, self.ca_certs) File "/home/vijay/Downloads/googleapi/httplib2/__init__.py", line 76, in _ssl_wrap_socket cert_reqs=cert_reqs, ca_certs=ca_certs) File "/usr/lib/python2.7/ssl.py", line 344, in wrap_socket ciphers=ciphers) File "/usr/lib/python2.7/ssl.py", line 119, in __init__ ciphers) ssl.SSLError: [Errno 185090050] _ssl.c:336: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib`
- スターターキット(plus_cli.py)内のファイルから作られたすべてのhttplib2の呼び出しで無効SSL、私はアイデアの出だし、これを解決する上であなたの助けが必要
httplib2.Http(disable_ssl_certificate_validation=True)
を使用。
この答えは、関連する質問に私の仕事: http://stackoverflow.com/a/16758765/1160485 –