[Mono-list] Mono.Security.Protocol.Tls

Cem Ballim cemballim@yahoo.com
Fri, 1 Apr 2005 07:08:43 -0800 (PST)


Hello,

Is there any sample for mutual authentication via Tls
using SslClientStream and SslServerStream? 

I have tried to implement this, but I am receiving the
following error from the client [SslClientStream s =
new SslClientStream (ns, "server",
true,Mono.Security.Protocol.Tls.SecurityProtocolType.Tls,xcertcoll)]
implementation:

Error #-2146762486: CERT_E_CHAINING 0x800B010A
The authentication or decryption has failed.   at
Mono.Security.Protocol.Tls.SslClientStream.NegotiateHandshake()
   at
Mono.Security.Protocol.Tls.SslClientStream.BeginWrite(Byte[]
buffer, Int32 offset, Int32 count, AsyncCallback
callback, Object state)
   at
Mono.Security.Protocol.Tls.SslClientStream.Write(Byte[]
buffer, Int32 offset, Int32 count)
   at System.IO.StreamWriter.Flush(Boolean
flushStream, Boolean flushEncoder)
   at System.IO.StreamWriter.Flush()

The server implementation is:
SslServerStream s = new SslServerStream (ns, xcert,
true,
true,Mono.Security.Protocol.Tls.SecurityProtocolType.Tls)

Thank you,

Cem




		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest