简体   繁体   English

如何删除Azure SSL绑定?

[英]How to remove Azure SSL binding?

I have a production site on Azure, with a Pay-As-You-Go subscription. 我在Azure上有一个生产站点,具有Pay-As-You-Go订阅。 I have two custom domain names set up for it, too. 我也为它设置了两个自定义域名。 MySite.org and www.MySite.org MySite.org和www.MySite.org

Some of my site's visitors are hitting my site via HTTPS, though I never intended to use HTTPS. 我网站的一些访问者通过HTTPS访问我的网站,但我从未打算使用HTTPS。 I don't need SSL for this site. 我不需要此网站的SSL。 They get an alarming browser warning: There is a problem with this website's security certificate. 他们得到一个惊人的浏览器警告:该网站的安全证书存在问题。 I don't know why or how they are using HTTPS, but no matter, I should be able to address this from the server side. 我不知道他们为什么或如何使用HTTPS,但无论如何,我应该能够从服务器端解决这个问题。

I want to disable the SSL binding, but I cannot find any place to do it in the Azure management portal. 我想禁用SSL绑定,但我在Azure管理门户中找不到任何地方。 As a workaround, I decided to try a URL Rewrite rule to direct from HTTPS to HTTP (usually one would want to redirect the other direction.), but the certificate warning still fires in the browser, because the browser is still processing an HTTPS request first, before the redirect, to a site that does have SSL set up. 作为一种解决方法,我决定尝试使用URL重写规则从HTTPS指向HTTP(通常需要重定向另一个方向。),但证书警告仍会在浏览器中触发,因为浏览器仍在处理HTTPS请求首先,在重定向之前,到设置了SSL的站点。 Ugh. 啊。

I found this: 我找到了这个:

Windows Azure Web Sites actually comes pre-configured to run on SSL, and if you don't want your own domain, then you can use SSL immediately. Windows Azure网站实际上已预先配置为在SSL上运行,如果您不想拥有自己的域,则可以立即使用SSL。 All you have to do is simply browse to it! 您所要做的就是浏览它! In your browser, change the prefix from HTTP:// to HTTPS:// and voila! 在浏览器中,将前缀从HTTP://更改为HTTPS://瞧! Your site will respond and you will have a secure connection to it. 您的网站将做出回应,您将与其建立安全连接。 However, we do not recommend using this to secure sensitive content or applications, because the wildcard certificate used is generic for all Azure Web Sites. 但是,我们不建议使用此方法来保护敏感内容或应用程序,因为所使用的通配符证书对于所有Azure网站都是通用的。

http://blogs.msdn.com/b/windowsazure/archive/2013/12/13/securing-your-windows-azure-web-sites-waws-with-https-and-ssl.aspx http://blogs.msdn.com/b/windowsazure/archive/2013/12/13/securing-your-windows-azure-web-sites-waws-with-https-and-ssl.aspx

That's great, but how do I turn it off?! 那太好了,但我怎么把它关掉?!

Thanks in advance, 提前致谢,
Lee C. 李C.

My problem was solved turning off "Authentication / Authorization" module. 我的问题解决了关闭“身份验证/授权”模块。 I didn't go further, but this was causing my website to redirect do HTTPS automatically. 我没有进一步,但这导致我的网站自动重定向做HTTPS。

Azure门户 -  Web App  - 身份验证/授权属性

Whilst you don't have your own certificate, if someone is hitting a scheme you don't intend to support then it's not going to be much fun for them. 虽然你没有自己的证书,但是如果某人正在打你不打算支持的计划,那么对他们来说并不是很有趣。 At the moment they'd be getting the Azure wildcard cert for azurewebsites.net which, of course, won't be valid for mydomain.com (or whatever) and they'll get a nasty security warning from the browser. 目前,他们将获得azurewebsites.net的Azure通配符证书,当然,这对于mydomain.com(或其他)无效,他们将从浏览器获得令人讨厌的安全警告。

There's no point trying to redirect from HTTPS to HTTP as they'll still get the browser warning on the HTTPS request. 尝试从HTTPS重定向到HTTP没有意义,因为他们仍然会在HTTPS请求上收到浏览器警告。

You also can't disable the HTTPS scheme on an Azure website, that's one thing configured centrally and not something you have the ability to turn on or off. 您也无法在Azure网站上禁用HTTPS方案,这是集中配置的一项功能,而不是您可以打开或关闭的功能。

Your best bet is to simply load a free SSL certificate onto the site that's valid for your domain and do the redirect you suggest. 您最好的办法是将免费的SSL证书加载到对您的域名有效的网站上, 进行您建议的重定向。 Check out The complete guide to loading a free SSL certificate into an Azure website . 查看将免费SSL证书加载到Azure网站的完整指南

Keep in mind that you can only load your own cert on Basic and Standard Azure websites, you won't be able to do this if you're on Free or Shared. 请记住,您只能在Basic和Standard Azure网站上加载自己的证书,如果您使用Free或Shared,则无法执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM