Security Windows Phone 7上的TLS-在Bouncy Castle中发送客户端证书
我使用Bouncy Castle向WindowsPhone7上的服务器发送客户端证书时遇到问题 我创建了自己的TlsAuthentication和从接口继承的TlsCredential类。但在方法上Security Windows Phone 7上的TLS-在Bouncy Castle中发送客户端证书,security,ssl,windows-phone-7.1,bouncycastle,client-certificates,Security,Ssl,Windows Phone 7.1,Bouncycastle,Client Certificates,我使用Bouncy Castle向WindowsPhone7上的服务器发送客户端证书时遇到问题 我创建了自己的TlsAuthentication和从接口继承的TlsCredential类。但在方法上 public TlsCredentials GetClientCredentials(CertificateRequest certificateRequest) { return this.TlsCredentials; } 出现异常 以下是我的例外: An ex
public TlsCredentials GetClientCredentials(CertificateRequest certificateRequest)
{
return this.TlsCredentials;
}
出现异常
以下是我的例外:
An exception of type 'Org.BouncyCastle.Crypto.Tls.TlsFatalAlert' occurred in bouncywp71.DLL and wasn't handled before a managed/native boundary
A first chance exception of type 'System.IO.IOException' occurred in bouncywp71.DLL
An exception of type 'System.IO.IOException' occurred in bouncywp71.DLL and wasn't handled before a managed/native boundary
Internal TLS error, this could be an attack
at Org.BouncyCastle.Crypto.Tls.TlsProtocolHandler.FailWithError(AlertLevel alertLevel, AlertDescription alertDescription)
at Org.BouncyCastle.Crypto.Tls.TlsProtocolHandler.SafeReadData()
at Org.BouncyCastle.Crypto.Tls.TlsProtocolHandler.Connect(TlsClient tlsClient)
at MYAPP.MyTest2.Network.Security.MyTestSecureClient.HandleConnectionReady()
at SocketEx.TcpClient.InnerConnect(EndPoint myEndpoint)
at MYAPP.MyTest2.Network.Security.MyTestSecureClient..ctor(String host, Int32 port, TlsClient tlsClient)
at MYAPP.MyTest2.Network.Security.MyTestSecureClient..ctor(String host, Int32 port)
at MYAPP.MyTest2.Network.ConnectionManager.CreateConnection(String host, Int32 port)
at MYAPP.MyTest2.Network.ConnectionManager..ctor(String host, Int32 port)
at MYAPP.MyTest2.Network.MyTestService.CreateConnectionManager(String host, Int32 port)
at MYAPP.MyTest2.Network.MyTestService.Login(LoginRequestModel request)
at MYAPP.MyTest2.ViewModel.LoginViewModel.<Login>b__1()
at MYAPP.MyTest2.Common.Helpers.ThreadHandler.<>c__DisplayClass3`1.<Execute>b__0(Object x)
如果有人知道如何解决这个问题,请帮助我
问候,,
阿图尔