网络负载均衡环境下wsHttpBinding+Message Security+Windows Authentication的常见异常

提高Windows Communication Foundation (WCF) 应用程序负载能力的方法之一就是通过把它们部署到负载均衡的服务器场中. 其中可以使用标准的负载均衡技术, Windows 网络负载均衡(NLB)的软件(例如 Application Request Routing), 或者硬件(F5)实现NLB的功能. 随着这些NLB场景变得越来越复杂, 对WCF的架构带来了越来越多的挑战. 本文仅对wsHttpBinding+Message Security+Windows Authentication在NLB的环境下最常见的文件进行讨论..

 

介绍 :

 

通过阅读本文, 您可以了解到:

  1. NLB下wsHttpBinding+Message Security+Windows Authentication常见的异常.`
  2. WCF Message Security的Windows Authentication是如何进行的.
  3. 提供几种典型的WCF Security的配置方式.

 

预备知识

 

WCF wsHttpBinding默认采用Message Security模式. 相比Transport Security模式,它有很多优点。例如:提供了End-to-End security, 允许选择性的加密部分消息,与传输协议无关可以用于任何传输协议,提供更多的安全选择。更多内容可以参考 :

http://msdn.microsoft.com/en-us/library/ff648863.aspx

http://msdn.microsoft.com/en-us/library/ms733137(v=vs.110).aspx

 

Message Security 下有多种客户端验证方式。 其中Windows authentication是比较常用的Credential Type,并且是默认值。更多内容可以参考:

http://msdn.microsoft.com/en-us/library/ms731346(v=vs.110).aspx

 

 

常见问题 :

 

在Standalone的服务器上WCF Security能够很好的工作. 但是在NLB的环境上, 由于错误的配置方式, 可能会遇到下面的常见错误 :

 

The SecurityContextSecurityToken with context-id=urn:uuid:xxxx(key generation-id=) is not registered. at System.ServiceModel.Security.WSSecureConversation.SecurityContextTokenEntry.ReadTokenCore

<System.ServiceModel.Security.SecurityNegotiationException: Cannot find the negotiation state for the context 'uuid-xxxx

 

 

WsHttpBinding+Message Security+Windows Authentication是如何工作的 :

 

要了解这两个错误是如何发生的, 首先需要了解正常情况下wsHttpBinding Message Security是如何进行Windows 验证的.

 

一般情况下, wsHttpBinding按照SPNEGO来引导一个SecurityContextToken(SCT)的生成, 并且将SCT缓存到服务器端. STCs 是基于对称密钥生成的,能够非常有效的签注/加密(signing/encrypting)消息。 当确定客户端会向服务器端发送多次请求的时候,这是一种非常好的提供效率的方式。通过观察WCF TRACE,一般来说会看到这样的过程。首先客户端和服务端生成一个SCT,然后进行一个SPNEGO的过程(有可能是多次请求才能完成),最后客户端和服务端交换SCT并且使用SCT加密WCF的调用。

下面比较详细的列举出整个步骤

  1. 客户端首先进行SP-Nego 握手, 这个过程完成后会生成一个SCT。

1)         客户端先发送一个Request Security Token(RST)。RST的目的是生成SP-Nego TokenType,它包含了一个SP-Nego块.

2)         服务端返回一个Request Security Token Response (RSTR).

3)         如果需要的话,客户端会将RSTR再次发送给服务端.

4)         服务端将一个对称密钥包裹在STC里, 又将STC包裹在Request Security Token Response Collection (RSTRC). 然后把RSTRC发送给客户端.

一般来说3)和4)可能会发生多次, 一般情况下可能会有4次, 2次客户端2次服务端.

 

  1. 客户端向服务端请求另外一个SCT用于消息层面的security。这个SCT是一个长生命是周期,并且真正代表了客户端和服务端之间的session key.

1)       客户端用SCT加注并且加密RST, 并把RST发送到服务端.

2)       服务器端用SCT加注并加密一个RSTR并发送会客户端. 这个RSTR中包含了一个SCT.

这里仅发生一次RST/RSTR.

 

  1. 客户端在得到 2 所产生的SCT之后,开始执行WCF调用。

1)       客户端使用上一步所得到的SCT来加密消息. 进行WCF调用.

2)       服务端执行完成之后, 使用同一的SCT来加密消息并返回给客户的. 在这里addressing headers会被签注, 消息体会被签注并且加密.

 

问题分析 :

 

问题一 :

 

The SecurityContextSecurityToken with context-id=urn:uuid:a02a1879-3297-4dee-8035-68eb30ed4195 (key generation-id=) is not registered.

at System.ServiceModel.Security.WSSecureConversation.SecurityContextTokenEntry.ReadTokenCore(XmlDictionaryReader reader, SecurityTokenResolver tokenResolver)

at System.ServiceModel.Security.WSSecurityTokenSerializer.ReadTokenCore(XmlReader reader, SecurityTokenResolver tokenResolver)

at System.IdentityModel.Selectors.SecurityTokenSerializer.ReadToken(XmlReader reader, SecurityTokenResolver tokenResolver)

at System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlReader reader, SecurityTokenResolver tokenResolver, IList1 allowedTokenAuthenticators, SecurityTokenAuthenticator&amp;amp; usedTokenAuthenticator)

at System.ServiceModel.Security.ReceiveSecurityHeader.ReadToken(XmlDictionaryReader reader, Int32 position, Byte[] decryptedBuffer, SecurityToken encryptionToken, String idInEncryptedForm, TimeSpan timeout)

at System.ServiceModel.Security.ReceiveSecurityHeader.ExecuteFullPass(XmlDictionaryReader reader)

at System.ServiceModel.Security.StrictModeSecurityHeaderElementInferenceEngine.ExecuteProcessingPasses(ReceiveSecurityHeader securityHeader, XmlDictionaryReader reader)

at System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan timeout)

at System.ServiceModel.Security.MessageSecurityProtocol.ProcessSecurityHeader(ReceiveSecurityHeader securityHeader, Message&amp;amp; message, SecurityToken requiredSigningToken, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)

at System.ServiceModel.Security.SymmetricSecurityProtocol.VerifyIncomingMessageCore(Message&amp;amp; message, String actor, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)

at System.ServiceModel.Security.MessageSecurityProtocol.VerifyIncomingMessage(Message&amp;amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)

at System.ServiceModel.Channels.SecurityChannelListener1.ServerSecurityChannel1.VerifyIncomingMessage(Message&amp;amp; message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationState)

at System.ServiceModel.Channels.SecurityChannelListener1.SecurityReplyChannel.ProcessReceivedRequest(RequestContext requestContext, TimeSpan timeout)

at System.ServiceModel.Channels.SecurityChannelListener1.ReceiveRequestAndVerifySecurityAsyncResult.ProcessInnerItem(RequestContext innerItem, TimeSpan timeout)

at System.ServiceModel.Channels.SecurityChannelListener1.ReceiveItemAndVerifySecurityAsyncResult2.OnInnerReceiveDone()

at System.ServiceModel.Channels.SecurityChannelListener1.ReceiveItemAndVerifySecurityAsyncResult2.InnerTryReceiveCompletedCallback(IAsyncResult result)

at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)

at System.ServiceModel.Channels.InputQueue1.AsyncQueueReader.Set(Item item)

at System.ServiceModel.Channels.InputQueue1.Dispatch()

at System.ServiceModel.Channels.InputQueue1.OnDispatchCallback(Object state)

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2()

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.OnSecurityContextCallback(Object o)

at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke()

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks()

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback(Object state)

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

at System.Threading.IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped pOVERLAP)

 

这个错误在服务端和客户端均能看到, 但大多数情况下是在服务端发生, 并且将这一的错误饭或到了客户端. 这个错误的字面意思就是找不到SCT. 但是既然能够肯到STC的UUID, 那么说明这个SCT确实存在.

参照上面STC生成的过程可以看到, STC是服务端和客户端进过多次的交涉最终才能形成. 这个STC只能在这个服务端和客户端之间传递, 并不能分享给第三方. 这是出于安全的考虑.

这个问题最常见于NLB的环境中.如果NLB设备或者软件没有启用Sticky Session. 在有多台WCF服务器的情况下, 客户端发起的请求很有可能被转移到另外一台服务器上. 由于STC并不会被第三方获取, 那么另外一个服务器上不会有相同的SCT. 因此服务端会认为这个STC并没有被注册.

 

 

问题二:

 

<ExceptionType>System.ServiceModel.Security.SecurityNegotiationException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>

<Message>Cannot find the negotiation state for the context 'uuid-954e94c0-6e42-4816-b53f-bc75e18a9534-2'.</Message>

<StackTrace>

at System.ServiceModel.Security.NegotiationTokenAuthenticator`1.ProcessRequestCore(Message request)

at System.ServiceModel.Security.NegotiationTokenAuthenticator`1.NegotiationHost.NegotiationSyncInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp; outputs)

at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp; rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp; rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&amp; rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&amp; rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&amp; rpc)

at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&amp; rpc)

at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)

at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)

at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)

at System.ServiceModel.Dispatcher.ChannelHandler.OnAsyncReceiveComplete(IAsyncResult result)

at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)

at System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)

at System.ServiceModel.Channels.InputQueue`1.Dispatch()

at System.ServiceModel.Channels.InputQueue`1.OnDispatchCallback(Object state)

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2()

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.OnSecurityContextCallback(Object o)

at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke()

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks()

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback(Object state)

at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)

at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)

at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

</StackTrace>

 

这个问题较多情况是发生在SPNego的阶段. 从上面介绍的步骤能够看到, SPNego的整个阶段很长,需要服务端和客户端进行多次的交流. 这这个交流的过程中, 任何一次请求被NLB递交到一个错误的服务器上都有可能造成这样的错误.

 

 

解决方案 :

 

造成上面问题的主要原因之一就是NLB的设备或者软件将客户端的请求递交到了一台错误的的服务器上. 要解决这一的问题, 最好的方法就是启用NLB上的Sticky Session. 在某些情形下, 如果NLB并不支持这种做法, 那么可以通过修改WCF配置来绕过这写问题.

 

为了解决第一个问题, 需要禁用Establishing Security Context. 禁用后, STC并不会被缓存起来, 也不会使用对称密钥, 而是改用非对称密钥, 而且每次都需要重新生成STC. 这种做法的副作用是降低WCF的性能.

 

 1 <bindings>
 2 
 3    <wsHttpBinding>
 4 
 5     <binding name=”MyServiceBinding”>    
 6 
 7      <security mode=”Message” >
 8 
 9       <message establishSecurityContext=”false” clientCredentialType=”Windows” />           
10 
11      </security>
12 
13     </binding>
14 
15    </wsHttpBinding>
16 
17   </bindings>

 

 

 

在解决第一个问题后, 仍然可能会遇到第二个问题. 因为默认情况下会服务端和客户端仍然会Negotiate Service Credential. 在这个过程中, 同样有可能会被NLB的行为中断从而引发问题. 可以通过禁用NegotiateServiceCredential来绕过这个问题.

 1 <bindings>
 2 
 3    <wsHttpBinding>
 4 
 5     <binding name=”MyServiceBinding”>    
 6 
 7      <security mode=”Message” >
 8       <message establishSecurityContext=”false” NegotiateServiceCredential=”false”
 9 
10 clientCredentialType=”Windows” />           
11 
12      </security>
13 
14     </binding>
15 
16    </wsHttpBinding>
17 
18   </bindings>

 

 

将属性设置为 true 需要客户端和服务支持 WS-Trust 和 WS-SecureConversation。 将属性设置为 false 时不需要 WS-Trust 或 WS-SecureConversation 受支持。对于 Windows 凭据,将此属性设置为 false 将导致基于 KerberosToken 的身份验证。 这要求客户端和服务都是 Kerberos 域的一部分。 此模式可与实现 OASIS Kerberos 令牌配置文件的 SOAP 堆栈交互操作。 将此属性为 true 会引起通过 SOAP 消息进行 SPNego 交换的 SOAP 协商. 如果将此属性设置为 false,并且将绑定配置为使用 Windows 作为客户端凭据类型,则必须将服务帐户与服务主体名称 (SPN) 相关联。 为此,请在 NETWORK SERVICE 帐户或 LOCAL SYSTEM 帐户下运行服务。 也可以使用 SetSpn.exe 工具为服务帐户创建一个 SPN。 不论何种情况,客户端都必须使用<servicePrincipalName> 元素中的正确 SPN,或者通过使用 EndpointAddress 构造函数来应用正确的 SPN。

 

除此之外, 还有下面的集中组合可以适用于NLB的环境中. 其中, BasicHttpBinding和wsHttpBinding均可以相互替换

•       BasicHttpBinding - TransportCredentialOnly - Windows

•       BasicHttpBinding - TransportCredentialOnly - Ntlm

•       BasicHttpBinding - TransportWithMessageCredential - UserName

•       BasicHttpBinding - TransportWithMessageCredential - Certificate

•       wsHttpBinding - Transport - Ntlm

 

l   BasicHttp – TransportCredentialOnly – Windows

Service – web.config

 

 1 <basicHttpBinding>
 2 
 3         <binding name="basicN">
 4 
 5           <security mode="TransportCredentialOnly">
 6 
 7             <transport clientCredentialType="Windows"/>
 8 
 9           </security>
10 
11         </binding>
12 
13 </basicHttpBinding>
14 
15  
16 
17 <endpoint address=""
18 
19                   binding="basicHttpBinding"
20 
21                   contract="WindowsAuthTestService.IService1"
22 
23                   bindingConfiguration="basicN"
24 
25                   />

 

 

Client – app.config

 

 1 <bindings>
 2 
 3             <basicHttpBinding>
 4 
 5                 <binding name="BasicHttpBinding_IService1">
 6 
 7                     <security mode="TransportCredentialOnly">
 8 
 9                         <transport clientCredentialType="Windows" />
10 
11                     </security>
12 
13                 </binding>
14 
15             </basicHttpBinding>
16 
17         </bindings>
18 
19         <client>
20 
21             <endpoint address="http://localhost/WindowsAuthTestService/Service1.svc"
22 
23                 binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
24 
25                 contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
26 
27         </client>

 

 

 

l   BasicHttp – TransportCredentialOnly – Ntlm

Service – web.config

 

 1 <basicHttpBinding>
 2 
 3         <binding name="basicN">
 4 
 5           <security mode="TransportCredentialOnly">
 6 
 7             <transport clientCredentialType="Ntlm"/>
 8 
 9           </security>
10 
11         </binding>
12 
13 </basicHttpBinding>
14 
15  
16 
17 <endpoint address=""
18 
19                   binding="basicHttpBinding"
20 
21                   contract="WindowsAuthTestService.IService1"
22 
23                   bindingConfiguration="basicN"
24 
25                   />

 

 

Client – app.config

 

 1 <bindings>
 2 
 3             <basicHttpBinding>
 4 
 5                 <binding name="BasicHttpBinding_IService1">
 6 
 7                     <security mode="TransportCredentialOnly">
 8 
 9                         <transport clientCredentialType="Ntlm" />
10 
11                     </security>
12 
13                 </binding>
14 
15             </basicHttpBinding>
16 
17         </bindings>
18 
19         <client>
20 
21             <endpoint address="http://pupanda-win8.fareast.corp.microsoft.com/WindowsAuthTestService/Service1.svc"
22 
23                 binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
24 
25                 contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
26 
27         </client>

 

 

l   BasicHttp – TransportWithMessageCredential – UserName

Service – web.config

 

 1 <bindings>
 2 
 3       <basicHttpBinding>
 4 
 5         <binding name="b0">
 6 
 7           <security mode="TransportWithMessageCredential">
 8 
 9             <message clientCredentialType="UserName"/>
10 
11           </security>
12 
13         </binding>
14 
15       </basicHttpBinding>
16 
17     </bindings>
18 
19  
20 
21 <serviceBehaviors>
22 
23         <behavior name="sb">
24 
25           <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
26 
27           <serviceDebug includeExceptionDetailInFaults="true"/>
28 
29           <serviceCredentials>
30 
31             <userNameAuthentication userNamePasswordValidationMode="Windows" />
32 
33             <serviceCertificate findValue="11 12 32 12"
34 
35                   storeLocation="LocalMachine"
36 
37                   storeName="My"
38 
39                   x509FindType="FindBySerialNumber"/>
40 
41           </serviceCredentials>
42 
43         </behavior>
44 
45       </serviceBehaviors>

 

 

Client – app.config

 

 1 <bindings>
 2 
 3             <basicHttpBinding>
 4 
 5                 <binding name="BasicHttpBinding_IService1">
 6 
 7                     <security mode="TransportWithMessageCredential" />
 8 
 9                 </binding>
10 
11             </basicHttpBinding>
12 
13         </bindings>
14 
15         <client>
16 
17             <endpoint address="https://server/TransportMessageService/Service1.svc"
18 
19                 binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
20 
21                 contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
22 
23         </client>

 

BasicHttp – TransportWithMessageCredential – Certificate

Service – web.config

 

 1 <basicHttpBinding>
 2 
 3         <binding name="b0">
 4 
 5           <security mode="TransportWithMessageCredential">
 6 
 7             <message clientCredentialType="Certificate"/>
 8 
 9           </security>
10 
11         </binding>

 

 

Client – app.config

 

 1 <bindings>
 2 
 3             <basicHttpBinding>
 4 
 5                 <binding name="BasicHttpBinding_IService1">
 6 
 7                     <security mode="TransportWithMessageCredential">
 8 
 9                       <message clientCredentialType="Certificate"/>
10 
11                     </security>
12 
13                 </binding>
14 
15             </basicHttpBinding>
16 
17         </bindings>
18 
19         <client>
20 
21             <endpoint address="https://server2/TransportMessageService/Service1.svc"
22 
23                 binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1" behaviorConfiguration="cl"
24 
25                 contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
26 
27         </client>
28 
29       <behaviors>
30 
31         <endpointBehaviors>
32 
33           <behavior name="cl">
34 
35             <clientCredentials>
36 
37               <clientCertificate findValue="31 7c d9 40 b5 ac b0 8e 99 99 00 00 12"
38 
39                   storeLocation="LocalMachine"
40 
41                   storeName="My"
42 
43                   x509FindType="FindBySerialNumber"/>
44 
45             </clientCredentials>
46 
47  
48 
49           </behavior>
50 
51         </endpointBehaviors>
52 
53       </behaviors>

 

 

l   wsHttpBinding – Transport – Ntlm

 

Service – web.config

 

 1 <wsHttpBinding>
 2 
 3                 <binding name="wsTransportBinding">
 4 
 5                     <security mode="Transport">
 6 
 7                         <transport clientCredentialType="Ntlm" />
 8 
 9                     </security>
10 
11                 </binding>
12 
13             </wsHttpBinding>
14 
15  
16 
17 Client – app.config
18 
19  
20 
21 <bindings>
22 
23             <wsHttpBinding>
24 
25                 <binding name="WSHttpBinding_IService1">
26 
27                     <security mode="Transport">
28 
29                         <transport clientCredentialType="Ntlm" />
30 
31                     </security>
32 
33                 </binding>
34 
35             </wsHttpBinding>
36 
37         </bindings>
38 
39         <client>
40 
41             <endpoint address="https://server/TransportMessageService/Service1.svc"
42 
43                 binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService1"
44 
45                 contract="ServiceReference1.IService1" name="WSHttpBinding_IService1">
46 
47                 <identity>
48 
49                     <servicePrincipalName value="host/pupanda-server.fareast.corp.microsoft.com" />
50 
51                 </identity>
52 
53             </endpoint>
54 
55         </client>

 

 

 

参考文档

 

http://msdn.microsoft.com/en-us/library/vstudio/hh273122(v=vs.100).aspx

http://blogs.msdn.com/b/socaldevgal/archive/2007/08/15/why-is-wshttpbinding-secure-by-default-how-does-it-work.aspx

http://stackoverflow.com/questions/1683724/what-are-the-impacts-of-setting-establishsecuritycontext-false-if-i-use-https

http://docs.oasis-open.org/ws-sx/ws-secureconversation/200512/ws-secureconversation-1.3-os.html

转载于:https://www.cnblogs.com/developersupport/p/wsHttpBinding-Message-Security-Windows-Authentication.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值