我正在尝试安装Chrome原生客户端。
我转到此https://developer.chrome.com/native-client/sdk/download页面下载并安装sdk。我按照本页中的说明操作,但是当我尝试执行naclsdk list
命令或任何naclsdk
命令时出现错误:
third_party.fancy_urllib.InvalidCertificateException: Host storage.googleapis.com returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)):
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
Usage: sdk_update_main.py <command> [options]
这是什么问题?证书有问题吗?
答案 0 :(得分:2)
只需注释两行sdk_tools / download.py
# ca_certs = os.path.join(SCRIPT_DIR, 'cacerts.txt')
# request.set_ssl_info(ca_certs=ca_certs)
答案 1 :(得分:1)
问题出在过时的sdk_tools/cacerts.txt
文件中; Google更改了他们使用的CA,但是代码尝试针对特定的CA信任锚进行验证。
顺便说一句,这突出了密钥固定的困难。
您可以做的最小更改是通过下载newer version来更新期望的CA证书。这仍然可以验证您是否已连接到Google控制的服务器。
在solution之前的七年中删除此自定义检出项也可以,但是在某些情况下可以欺骗下载站点。
答案 2 :(得分:0)
当我尝试应用接受的答案时,download.py
在执行之前被旧版本覆盖。
相反,我通过将cacerts.txt
的内容替换为今天使用的证书链storage.googleapis.com
来更新了证书:
-----BEGIN CERTIFICATE-----
MIIGcjCCBVqgAwIBAgIQBdcOj75NzEPW3Y45nh0r+zANBgkqhkiG9w0BAQsFADBU
MQswCQYDVQQGEwJVUzEeMBwGA1UEChMVR29vZ2xlIFRydXN0IFNlcnZpY2VzMSUw
IwYDVQQDExxHb29nbGUgSW50ZXJuZXQgQXV0aG9yaXR5IEczMB4XDTE5MDMwMTA5
MzY0NVoXDTE5MDUyNDA5MjUwMFowcjELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNh
bGlmb3JuaWExFjAUBgNVBAcMDU1vdW50YWluIFZpZXcxEzARBgNVBAoMCkdvb2ds
ZSBMTEMxITAfBgNVBAMMGCouc3RvcmFnZS5nb29nbGVhcGlzLmNvbTCCASIwDQYJ
KoZ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