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

Matthijs ter Woord (meddochat) meddochat@zonnet.nl
Sat, 2 Apr 2005 09:01:28 +0200


Hi Cem,

IIRC this means that the root certificate isn't accepted by your client. You
could try to provide a method in
SslClientStream.ServerCertValidationDelegate which returns true, or
otherwise get another Certificate.


Greets,

Matthijs ter Woord




----- Original Message ----- 
From: "Cem Ballim" <cemballim@yahoo.com>
To: <mono-list@lists.ximian.com>
Sent: Friday, April 01, 2005 5:08 PM
Subject: [Mono-list] Mono.Security.Protocol.Tls


> 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
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>