如何在没有任何 SSL 证书的情况下将 https 重定向到 http [英] How to redirect https to http without any SSL Certificate

查看:49
本文介绍了如何在没有任何 SSL 证书的情况下将 https 重定向到 http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很难解释我在这里寻求什么.

Is difficult to explain what I am seekig here.

我有一个没有 SSL 证书的网站,我使用一个页面作为 Facebook 应用程序的登录页面.

I have a website that doesn't have SSL Certificates and I am using a page as a landing page for a Facebook Application.

我的问题是当有人在 facebook (https://) 上建立安全连接时,iframe src 指向我登录页面的相同 https URL.这会返回这样的错误.

My Problem is when someone is on a secure connection on facebook (https://) the iframe src is pointed to the same https URL of my landing page. this returns an error like this.

SSL connection error

Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.

Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

如何让用户在不安装 SSL 证书的情况下重定向到 http 或任何解决方法?

How do I may users redirect to http or any workaround without installing SSL Certificates?

推荐答案

确实没有办法做到这一点:HTTPS 依赖于存在的 SSL 证书以及在将任何数据发送到服务器之前发生的 SSL 协商.因此,如果没有 SSL 证书,那么它甚至不会达到您可以发送重定向的程度(正如您所观察到的).

There is really no way to do that: HTTPS relies on the SSL certificate being present and the SSL negotiation ocurring BEFORE any data is sent to the server. Therefore if there is no SSL cert then it won't even get to the point where you can send a redirect (as you are observing).

我建议您购买最便宜的证书:GoDaddy 有特价 12.99 美元,我已经非常有效地用于此目的(Facebook 应用程序 SSL 页面),您可以在 15 分钟内购买并准备好.

I'd suggest just buying the cheapest cert you can: GoDaddy has specials for $12.99 that I've used quite effectively for just this purpose (Facebook app SSL pages) and that you can have bought and ready in 15 minutes.

只需使用 Lets Encrypt,正如@xbakesx 在他的评论中所说的那样.完全免费,没有延迟,几乎无处不在.

Just use Lets Encrypt, as @xbakesx states in his comment. Completely free, no delay, accepted pretty much everywhere.

这篇关于如何在没有任何 SSL 证书的情况下将 https 重定向到 http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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