简体   繁体   English

我可以为同一端点使用普通的http和https

[英]Can I use normal http and https for the same endpoint

So I have a client who is going to upgrade to ssl, but they currently use just plain http. 所以我有一个客户端要升级到ssl,但他们目前只使用普通的http。

I want to change the endpoint for the service. 我想更改服务的端点。 To use https. 要使用https。

    <binding name="basicHttpSSLBinding" closeTimeout="00:02:00" openTimeout="00:02:00"
            receiveTimeout="00:20:00" sendTimeout="00:20:00">
          <security mode="Transport" > 
          </security>
        </binding>

The question is will their connection to the web service using http still work until they change the address to https? 问题是他们使用http连接到Web服务仍然有效,直到他们将地址更改为https? Do I need two endpoints to pull this off? 我需要两个端点来解决这个问题吗?

Short answer is no, when you switch to HTTPS then HTTP won't work any longer. 简短的回答是否定的,当您切换到HTTPS时,HTTP将不再起作用。 Yes, you'll need two endpoint: one with security mode transport and one with security mode none. 是的,您需要两个端点:一个具有安全模式传输,另一个具有安全模式无。 They'll also need different address attribute values. 他们还需要不同的地址属性值。

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

相关问题 如何启用http和https端点? - How can I enable both http and https endpoint? 我有 HTTP 方案并且需要 HTTPS,但我的绑定是 BasicHttpSecurityMode.Transport; 我的端点是 HTTP - I have HTTP scheme and HTTPS is expected, but my binding is BasicHttpSecurityMode.Transport; And my EndPoint is HTTP 将 WebService Endpoint 从 HTTP 更改为 HTTPS - Change WebService Endpoint from HTTP to HTTPS 我可以在ConcurrentBag上使用正常的foreach吗? - Can I use a normal foreach on a ConcurrentBag? 在同一服务上启用HTTP和https - Enabling http and https on the same service 是否可以在同一端口上的 HTTP 中创建另一个端点? - Is it possible to create an other endpoint in HTTP on the same port? Azure WCF具有https wsdl URL,但终结点URL在http中 - Azure WCF has https wsdl url but endpoint url is in http 是否有一个类似于OutputCache的属性,我可以在普通的C#方法上使用它? - Is there an attribute similar to OutputCache that I can use on normal C# methods? 如何将我的相机用作 VR 和普通相机 - How can I use my camera as both VR and normal camera 我可以使用哪个Kubernetes API端点查看是否存在计划外的Pod? - What Kubernetes API endpoint can I use to see if there are unscheduled pods?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM