ssl - 如何修复 GCloud App Engine ERR_SSL_PROTOCOL_ERROR?

标签 ssl google-cloud-platform

我希望有一个我一直忽略的简单解决方案。我用 Python 在 Google Cloud App Engine 上创建了一个应用程序,其中包含一些 REST API。每当我尝试使用 API 时,都会收到 ssl 错误。
使用 HTTPClient 时我收到握手错误,当我进入浏览器时,我得到 ERR_SSL_PROTOCOL_ERROR .有趣的是,如果我先使用 HTTP,然后使用 HTTPS,它至少可以在短时间内完美运行。
这是我第一次使用谷歌云。根据我在文档中阅读的内容,App Engine 负责处理所有 HTTPS 内容,包括证书。有什么我想念的吗?
任何帮助将不胜感激。
更新:
Comcast 实际上阻止了与我的 Web 服务的所有连接。我可以通过 VPN 完美访问它。有谁知道我如何解决问题以通过康卡斯特?否则,只要涉及 Comcast,我的 Web 服务就毫无用处。

最佳答案

什么是 ERR_SSL_PROTOCOL_ERROR?

The ERR_SSL_PROTOCOL_ERROR occurs when the website you’re trying to open is facing a problem which is preventing the mandatory exchange of certificate.


是什么导致了这个错误?

This issue can be caused by:

  1. Invalid System Time
  2. Clear Browsing Data
  3. Clear Your SSL State
  4. Disable QUIC Protocol of Chrome
  5. Check Your Antivirus Settings
  6. Check Your Firewall
  7. Disable Extensions

如何解决这个问题?
  • 检查系统日期

  • When the date of your computer is not in sync with the date of the server that you’re trying to access you’ll face the problem of ERR_SSL_PROTOCOL_ERROR on your Chrome browser.To fix this, adjust the date of your system to current date and then try opening the site.


  • 清除浏览数据

  • Sometimes browsing data may also come in the way of your internet surfing experience, thus giving you that nasty SSL error again and again. If the date on your computer is right, follow the steps given below to delete browsing data from your Chrome browser:

    • Launch Chrome;
    • Press Ctrl + Shift + Delete;
    • Ensure that the time range is set to “All Time”;
    • Check the checkbox for “Cookies and other site data”;
    • Check the checkbox for “Cached images and files”;
    • Hit Clear Data
    • Wait for it to complete, and once it has been done try loading the website again in your browser.

  • 清除您的 SSL 状态

  • If your problem still persists, the next thing you should try is clearing the SSL >state of your computer. Follow the steps given below to do that:

    • Click on the 3 dots showing next to the address bar in Chrome, right below the close button of the browser.
    • Click Settings and scroll all the way down to Advanced Click on the button to expand Advanced settings;
    • Now scroll down to “Open Proxy Settings” option under System section and click on it;
    • A window named “Internet Properties” will open. Go to Content tab in that window and click on Clear SSL State.

  • 禁用 Chrome 的 QUIC 协议(protocol)

  • Try disabling the QUIC Protocol of Google Chrome browser. To do that, paste:

    chrome://flags/#enable-quic

    in the address bar of your Chrome browser and hit Enter; Under Experimental QUIC Protocol option, you’ll see that it’s set to “Default”. Disable it.


  • 检查您的防病毒设置

  • Sometimes your antivirus may also be the cause behind an SSL error. Antivirus programs scan the websites for malicious elements and other security threats, which also includes checking the SSL/TLS version of a site. If a website is using an outdated version of SSL, the antivirus blocks it and doesn’t allow us to visit it. In this case, the problem can be solved by disabling the antivirus temporarily.


  • 检查您的防火墙

  • Check your Firewall to ensure that the website you’re trying to visit is not present in its blocklist. If you find it there, remove it and try loading the website again.


  • 禁用扩展

  • Make sure that your website is not blocked by any extension. Disable your Chrome extensions one by one and open the error generating website again and again as you do that.


    如果错误仍然存​​在,那么我建议您使用 Google Cloud Platform technical support 开票。为了通过检查您的项目来进一步调查。

    关于ssl - 如何修复 GCloud App Engine ERR_SSL_PROTOCOL_ERROR?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63498404/

    相关文章:

    mysql - 如何防止自动更新应用于 Cloud SQL 实例

    python - 如何自动按计划运行 Google Cloud 的 "AI Notebooks"?

    ssl - 在 IIS7 Windows server 2008R2 上运行多个具有相同 ip 和端口的网站

    android - javax.net.ssl.SSLPeerUnverifiedException : No peer certificate on Android 4. x 和 5.x

    mysql - 如何在 Windows 中的 MySQL 服务器上启用 SSL 连接

    google-cloud-platform - 当我尝试部署端点配置时,gcloud 抛出 PERMISSION_DENIED

    node.js - Google App Engine 连接.session() 错误

    google-cloud-platform - 从 Google Translate API 获取多种变体

    apache - 使用 Apache 服务器和 Elastic Load Balancer 在 Windows EC2 实例上使用 AWS 证书

    ssl - 使用 curl 显示收到的证书?