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

Cem Ballim cemballim@yahoo.com
Fri, 1 Apr 2005 23:36:53 -0800 (PST)


Thanks for the reply.

The root certificate is valid. Does the root
certificate need to be supplied within the
CertificateCollection passed to the SslClientStream?

Does the following have any effect?
>From (mcs-1.0.6)
Mono.Security.Protocol.Tls.Handshake.Client,
TlsClientCertificate.cs:

		protected override void ProcessAsTls1()
		{
#warning "Client certificate selection is unfinished"
....



--- "Matthijs ter Woord (meddochat)"
<meddochat@zonnet.nl> wrote:
> 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
> >
> 
> 
> 


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