热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何在没有任何SSL证书的情况下将https重定向到http-HowtoredirecthttpstohttpwithoutanySSLCertificate

IsdifficulttoexplainwhatIamseekighere.很难解释我在这里寻求的东西。IhaveawebsitethatdoesnthaveSS

Is difficult to explain what I am seekig here.

很难解释我在这里寻求的东西。

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

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

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.

我的问题是当有人在Facebook(https://)上建立安全连接时,iframe src指向我的目标网页的相同https网址。这会返回一个这样的错误。

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.

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

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

4 个解决方案

#1


22  

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).

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

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.

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

#2


2  

If you can't prevent the initial connect from happening with HTTPS, then you (and your server) are never part of the conversation. The only two options are 1) get an SSL certificate (they are cheap), or 2) somehow get the connection to happen over HTTP.

如果您无法阻止使用HTTPS进行初始连接,那么您(和您的服务器)永远不会成为对话的一部分。只有两个选项是1)获得SSL证书(它们很便宜),或2)以某种方式通过HTTP获得连接。

#3


2  

As an addition to Femi's comment, all Facebook Apps and Pages must support SSL from October 1st so one must prepare for it anyways.

作为Femi评论的补充,所有Facebook应用程序和页面必须从10月1日起支持SSL,因此无论如何都必须为此做好准备。

Re: https://developers.facebook.com/blog/post/499/

#4


2  

I found a nice solution today to have pages with HTTPS without having a certificate.

今天我找到了一个很好的解决方案,即在没有证书的情况下使用HTTPS页面。

You can use cloudflare SSL: Flexible. This way the SSL will be between client and cloudflare server, and between cloudflare and your server will not be secure.

您可以使用cloudflare SSL:灵活。这样,SSL将位于客户端和cloudflare服务器之间,而cloudflare和您的服务器之间将不安全。

This option is only if you don't have sensitive data because the connection betweeen server and cloudflare is not encrypted

仅当您没有敏感数据时才使用此选项,因为服务器和cloudflare之间的连接未加密

This is how it looks:

这就是它的样子:

enter image description here

Check here more: https://support.cloudflare.com/hc/en-us/articles/200170416-What-do-the-SSL-options-mean-

点击这里更多:https://support.cloudflare.com/hc/en-us/articles/200170416-What-do-the-SSL-options-mean-


推荐阅读
  • 现在比较流行使用静态网站生成器来搭建网站,博客产品着陆页微信转发页面等。但每次都需要对服务器进行配置,也是一个重复但繁琐的工作。使用DockerWeb,只需5分钟就能搭建一个基于D ... [详细]
  • Answer:Theterm“backslash”isonofthemostincorrectlyusedtermsincomputing.People ... [详细]
  • centos php部署到nginx 404_NodeJS项目部署到阿里云ECS服务器全程详解
    本文转载自:http:www.kovli.com20170919ecs-deploy作者:Kovli本文详细介绍如何部署NodeJS项目到阿里云ECS上, ... [详细]
  • OAuth2.0指南
    引言OAuth2.0是一种应用之间彼此访问数据的开源授权协议。比如,一个游戏应用可以访问Facebook的用户数据,或者一个基于地理的应用可以访问Foursquare的用户数据等。 ... [详细]
  • 加密、解密、揭秘
    谈PHP中信息加密技术同样是一道面试答错的问题,面试官问我非对称加密算法中有哪些经典的算法?当时我愣了一下,因为我把非对称加密与单项散列加 ... [详细]
  • 在Kubernetes上部署JupyterHub的步骤和实验依赖
    本文介绍了在Kubernetes上部署JupyterHub的步骤和实验所需的依赖,包括安装Docker和K8s,使用kubeadm进行安装,以及更新下载的镜像等。 ... [详细]
  • 生成式对抗网络模型综述摘要生成式对抗网络模型(GAN)是基于深度学习的一种强大的生成模型,可以应用于计算机视觉、自然语言处理、半监督学习等重要领域。生成式对抗网络 ... [详细]
  • 搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的详细步骤
    本文详细介绍了搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的步骤,包括环境说明、相关软件下载的地址以及所需的插件下载地址。 ... [详细]
  • 这是原文链接:sendingformdata许多情况下,我们使用表单发送数据到服务器。服务器处理数据并返回响应给用户。这看起来很简单,但是 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • 关键词:Golang, Cookie, 跟踪位置, net/http/cookiejar, package main, golang.org/x/net/publicsuffix, io/ioutil, log, net/http, net/http/cookiejar ... [详细]
  • IjustinheritedsomewebpageswhichusesMooTools.IneverusedMooTools.NowIneedtoaddsomef ... [详细]
  • Vue基础一、什么是Vue1.1概念Vue(读音vjuː,类似于view)是一套用于构建用户界面的渐进式JavaScript框架,与其它大型框架不 ... [详细]
  • Html5第一章
    Html5第一章 ... [详细]
  • 使用parent.xadmin.add_tab()方法打开新的标签页重点是这个parent,折磨了我一下午,原来是没有搞清应该从父页面打开。最开始的xa ... [详细]
author-avatar
手机用户2602918063
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有