How to redirect https to http without any SSL Certificate(如何在没有任何 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在没有任何 SSL 证书的情况下将 https 重定向
基础教程推荐
- 如何在 Symfony 和 Doctrine 中实现多对多和一对多? 2022-01-01
- 在 yii2 中迁移时出现异常“找不到驱动程序" 2022-01-01
- PHP 守护进程/worker 环境 2022-01-01
- 如何在 XAMPP 上启用 mysqli? 2021-01-01
- HTTP 与 FTP 上传 2021-01-01
- 在 CakePHP 2.0 中使用 Html Helper 时未定义的变量 2021-01-01
- 找不到类“AppHttpControllersDB",我也无法使用新模型 2022-01-01
- phpmyadmin 错误“#1062 - 密钥 1 的重复条目‘1’" 2022-01-01
- 使用 PDO 转义列名 2021-01-01
- Doctrine 2 - 在多对多关系中记录更改 2022-01-01