Google App Engine SSL 证书错误 [英] Google App Engine SSL Certificate Error

查看:30
本文介绍了Google App Engine SSL 证书错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 IntelliJ IDE,我已经安装了 google cloud sdk、google app engine sdk、python.但是当我试图通过 ItelliJ>>tools>>google app engine for php >> upload app engine php app.但我收到此错误:

I'm using IntelliJ IDE, I have installed google cloud sdk, google app engine sdk, python. but when I'm trying to go through ItelliJ>>tools>>google app engine for php >> upload app engine php app. but I"m getting this error:

    Traceback (most recent call last):
  File "C:/Program Files (x86)/Google/google_appengine/appcfg.py", line 133, in <module>
    run_file(__file__, globals())
  File "C:/Program Files (x86)/Google/google_appengine/appcfg.py", line 129, in run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 5521, in <module>
    main(sys.argv)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 5512, in main
    result = AppCfgApp(argv).Run()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 2975, in Run
    self.action(self)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 5168, in __call__
    return method()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 3900, in Update
    self._UpdateWithParsedAppYaml(appyaml, self.basepath)
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappcfg.py", line 3921, in _UpdateWithParsedAppYaml
    updatecheck.CheckForUpdates()
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolssdk_update_checker.py", line 245, in CheckForUpdates
    runtime=runtime))
  File "C:Program Files (x86)Googlegoogle_appenginegoogleappengine	oolsappengine_rpc_httplib2.py", line 246, in Send
    url, method=method, body=payload, headers=headers)
  File "C:Program Files (x86)Googlegoogle_appenginelibhttplib2httplib2\__init__.py", line 1584, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "C:Program Files (x86)Googlegoogle_appenginelibhttplib2httplib2\__init__.py", line 1332, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "C:Program Files (x86)Googlegoogle_appenginelibhttplib2httplib2\__init__.py", line 1268, in _conn_request
    conn.connect()
  File "C:Program Files (x86)Googlegoogle_appenginelibhttplib2httplib2\__init__.py", line 1037, in connect
    raise SSLHandshakeError(e)
httplib2.SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

Process finished with exit code 1

此路径上有可用的证书文件:google_appenginelibcacertscacerts.txt

There is certificate file available on this path: google_appenginelibcacertscacerts.txt

我还使用 gcloud shell 进行了身份验证并设置了正确的项目.并在 ItelliJ app.yml 中设置相同的项目 ID.

also I have authenticated using gcloud shell and setup proper project. and in ItelliJ app.yml set same project id.

谁能帮我解决这个问题.

Can anyone help me to solve this issue.

谢谢,

推荐答案

我在从 1.9.49 升级 GAE SDK 后尝试运行开发服务器时遇到了类似的错误(在 linux 上)(效果很好)到当前最新的 1.9.51.

I got a similar error (on linux) when trying to run the development server after upgrading the GAE SDK from 1.9.49 (which worked fine) to currently latest 1.9.51.

在挖掘 SO 并找到重命名/删除与您提到的文件等效的 cacerts.txt 文件的建议后,我尝试了它,但没有帮助 - 弹出了一些其他相关错误.

After digging on SO and finding suggestions for renaming/removing the cacerts.txt file equivalent to the one you mentioned I tried it, but it didn't help - some other related error popped up.

所以我刚刚从 1.9.49 SDK 中复制了相应的 cacerts.txt 文件,一切又正常了.

So I just copied over the respective cacerts.txt file from the 1.9.49 SDK and things are working fine again.

这篇关于Google App Engine SSL 证书错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆