C# 指定用于WSHttpBinding客户端连接的SSL协议版本

C# 指定用于WSHttpBinding客户端连接的SSL协议版本,c#,.net,ssl,client-certificates,C#,.net,Ssl,Client Certificates,通过WSHttpBinding使用web服务时,是否可以指定要使用的SSL协议版本 我一直在使用跟踪日志来尝试确定使用客户端证书通过SSL调用web服务失败的原因 最终日志显示一个警报15 03 01 00 02和一个意外错误的警报代码02 0A。我怀疑这个错误是因为服务器无法处理我抛出的SSL版本 System.Net.Sockets Verbose: 0 : [13908] Exiting Socket#15927457::Send() -> Int32#138 System.

通过WSHttpBinding使用web服务时,是否可以指定要使用的SSL协议版本

我一直在使用跟踪日志来尝试确定使用客户端证书通过SSL调用web服务失败的原因

最终日志显示一个警报
15 03 01 00 02
和一个意外错误的警报代码
02 0A
。我怀疑这个错误是因为服务器无法处理我抛出的SSL版本

System.Net.Sockets Verbose: 0 : [13908] Exiting Socket#15927457::Send()     -> Int32#138
System.Net.Sockets Verbose: 0 : [13908] Socket#15927457::Receive()
System.Net.Sockets Verbose: 0 : [13908] Data from Socket#15927457::Receive
System.Net.Sockets Verbose: 0 : [13908] 00000000 : 15 03 01 00 02                                  : .....
System.Net.Sockets Verbose: 0 : [13908] Exiting Socket#15927457::Receive()  -> Int32#5
System.Net.Sockets Verbose: 0 : [13908] Socket#15927457::Receive()
System.Net.Sockets Verbose: 0 : [13908] Data from Socket#15927457::Receive
System.Net.Sockets Verbose: 0 : [13908] 00000005 : 02 0A                                           : ..
System.Net.Sockets Verbose: 0 : [13908] Exiting Socket#15927457::Receive()  -> Int32#2
System.Net Information: 0 : [13908] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 79d80e8:7a0e230, targetName = dsl-wholesale-testing.iinet.net.au, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)
System.Net Information: 0 : [13908] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=IllegalMessage).
System.Net.Sockets Verbose: 0 : [13908] Socket#15927457::Dispose()
System.Net Error: 0 : [13908] Exception in HttpWebRequest#41613110:: - The request was aborted: Could not create SSL/TLS secure channel..
System.Net Error: 0 : [13908] Exception in HttpWebRequest#41613110::GetResponse - The request was aborted: Could not create SSL/TLS secure channel..

我有一个使用相同web服务的基于PHP的客户端,我通过cURL(
cURL\u setopt(
)指定SSL版本3。

版本可以设置如下:

System.Net.ServicePointManager.SecurityProtocol=System.Net.SecurityProtocolType.Ssl3