How can I configure Azure Application Gateway to redirect old SSL connections?

牧云@^-^@ 提交于 2020-01-07 02:24:12

问题


I have a website that I want to allow SSL access to everything, but TLS 1.2 only to the API, and any sensitive portion of the app.

Any outdated client should go to an error page, explaining why they can't access the resource, and that "it's not us, its you" warning about an outdated browser.

How can I configure this equivalent functionality (which is present on a Netscaler BTW) in App Gateway?


回答1:


I remember recommending you try that on a different thread. In hindsight i now regret it, since the documentation has no mention of any ability to detect TLS protocol version and take custom action.

However in something that has been around for longer, like nginx, this is almost trivial to accomplish:

if ($ssl_protocol != "TLSv1.2") {
    return 302 https://example.com/outdated.html;
}

See this thread for a broader discussion:
https://community.qualys.com/thread/12758

Naturally the downside of your approach is that any PCI-ish security audit tool out there is going to flag you as "insecure", since you're handshaking on TLS 1.0 and 1.1.

Whatever you do, DO NOT shake hands with SSLv3, not even once.

In other news, Citrix seems to have a bring-your-own-license NetScaler offering on Azure.



来源:https://stackoverflow.com/questions/38724057/how-can-i-configure-azure-application-gateway-to-redirect-old-ssl-connections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!