如何摆脱过期证书的ssl安全警告 [英] How to get rid of an ssl security warning with expired certificate

查看:177
本文介绍了如何摆脱过期证书的ssl安全警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去我有ssl证书,但我没有它,因为我没有使用它。但是,现在我看到我的网站的一些页面在谷歌上使用https编入索引。单击这些链接会指示您发出安全警告。我该如何最好地解决这个问题?我尝试调整htaccess文件将https请求重定向到http协议,但这不会删除警告。有什么帮助吗?

In the past I had a ssl certificate but I don't have it anymore because I didn't use it. However, now I see that some of the my website's page are indexed on google with https. Clicking those links directs you to a security warning. How can I best solve this? I tried adjusting the htaccess file redirect https requests to the http protocol, but that doesn't remove the warning. Any help?

推荐答案

除了续签证书外,你无能为力。

There's nothing you can do except renew your certificate.

您的浏览器会打开警告,之前甚至会将任何请求发送到服务器。当它尝试解析HTTPS请求时,它首先与服务器建立SSL握手,这是服务器向浏览器提供证书并且浏览器看到它已过期的位置。然后,浏览器显示安全异常/警告。这意味着您可以在服务器端执行 nothing 以防止这种情况发生,除非解决证书问题。

The warning is opened by your browser, before any request is ever even sent to the server. When it tries to resolve an HTTPS request, it first establishes the SSL handshake with the server, this is where the server gives the browser the certificate and the browser sees that it's expired. The browser then displays a security exception/warning. That means there is nothing that you can do on the server's end to prevent this from happening except addressing the certificate.

续订后您的证书,您需要有一条规则,使用301重定向将所有HTTPS流量重定向到HTTP流量。

After you've renewed your cert, you need to have a rule to redirect all HTTPS traffic to HTTP traffic using a 301 redirect.

这篇关于如何摆脱过期证书的ssl安全警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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