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

问题描述

我正在使用IntelliJ IDE,我已安装谷歌云SDK,谷歌应用程序引擎SDK,Python。但是当我试图通过ItelliJ >>工具>>谷歌应用程序引擎的PHP >>上传应用程序引擎的PHP应用程序。但我得到这个错误:
$ b $ pre $ Traceback(最近一次调用最后一次):
文件C:/ Program文件(x86)/Google/google_appengine/appcfg.py,第133行,位于< module>
run_file(__ file__,globals())
文件C:/ Program Files(x86)/ Google /google_appengine/appcfg.py,第129行,在run_file中
execfile(_PATHS.script_file(script_name),globals_)
文件C:\程序文件(x86)\Google\google_appengine\\ /google\appengine\tools\appcfg.py,第5521行,位于< module>
main(sys.argv)
文件C:\程序文件(x86)\ Google $\\google_appengine\\google\\appengine\tools\appcfg.py,第5512行,在主
结果= AppCfgApp(argv).Run()
文件C:\Program文件(x86)\Google\google_appengine\google\appengine\tools\appcfg.py,第2975行,运行
self.action(self)
文件C:\\ \\程序文件(x86)\Google\google_ appengine \google\appengine\tools\appcfg.py,第5168行,在__call__
return method()
文件C:\程序文件(x86)\Google\ google_appengine \google \appengine\tools\appcfg.py,第3900行,更新
self._UpdateWithParsedAppYaml(appyaml,self.basepath)
文件C:\ Program Files(x86 )\Google\google_appengine\google\appengine\tools\appcfg.py,第3921行,位于_UpdateWithParsedAppYaml
updatecheck.CheckForUpdates()
文件C:\程序文件( x86)\Google\google_appengine\google\appengine\tools\sdk_update_checker.py,第245行,在CheckForUpdates
runtime = runtime))
文件C:\程序文件(x86)\Google\google_appengine\google\appengine\tools\appengine_rpc_httplib2.py,第246行,发送
url,method = method,body = payload,headers = headers)
文件C:\程序文件(x86)\\在请求
(response,content)= self._request(conn,authority,uri,request_uri,method, body,headers,redirections,cachekey)
文件C:\ Program Files(x86)\Google\google_appengine\lib\httplib2\httplib2\__init __。py,第1332行,在_request
(response,content)= self._conn_request(conn,request_uri,method,body,headers)
文件C:\程序文件(x86)\Google\google_appengine\lib\ httplib2 \httplib2\__init __。py,第1268行,在_conn_request
conn.connect()
文件C:\程序文件(x86)\Google\google_appengine\lib\\ \\ httplib2 \httplib2\__init __。py,第1037行,连接
raise SSLHandshakeError(e)
httplib2.SSLHandshakeError:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:581)

处理程序以退出公司完成de 1

此路径上有证书文件可供使用:google_appengine \lib\cacerts\cacerts .txt

我也使用gcloud shell进行身份验证并设置适当的项目。并在ItelliJ app.yml中设置相同的项目ID。

任何人都可以帮我解决这个问题。

谢谢,

解决方案
)在将GAE SDK从 1.9.49 (可以正常工作)升级到当前最新的 1.9.51 后尝试运行开发服务器c code
$ b

在深入研究并找到重命名/删除 cacerts.txt 文件等效的建议后到你提到的那个我试过了,但它没有帮助 - 一些其他相关的错误弹出。

所以我刚刚复制了1.9.49 SDK中相应的 cacerts.txt 文件,并且工作正常再次。


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)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5521, in <module>
    main(sys.argv)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5512, in main
    result = AppCfgApp(argv).Run()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 2975, in Run
    self.action(self)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 5168, in __call__
    return method()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3900, in Update
    self._UpdateWithParsedAppYaml(appyaml, self.basepath)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appcfg.py", line 3921, in _UpdateWithParsedAppYaml
    updatecheck.CheckForUpdates()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\sdk_update_checker.py", line 245, in CheckForUpdates
    runtime=runtime))
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc_httplib2.py", line 246, in Send
    url, method=method, body=payload, headers=headers)
  File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__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)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1332, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__init__.py", line 1268, in _conn_request
    conn.connect()
  File "C:\Program Files (x86)\Google\google_appengine\lib\httplib2\httplib2\__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

There is certificate file available on this path: google_appengine\lib\cacerts\cacerts.txt

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.

Thanks,

解决方案

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.

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.

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证书错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 07:51