[Mono-list] SslStream + mono == error

Aldo Prinzi aldo.prinzi at gmail.com
Tue Sep 14 03:13:07 EDT 2010



Are you using a "valid" certificate?
Valid means: a "real certificate", the one that came from a
certification authority.
Not valid means: a certificate issued by yourself.
In that case you must build an "accept all certificates routine", one
that can trust valid (from certification authorities) and invalid (your
own issued) certificates.

Take a look to
http://blog.jameshiggs.com/2008/05/01/c-how-to-accept-an-invalid-ssl-certificate-programmatically/
or googling for a solution
http://www.google.it/search?hl=&q=%2Baccept+%2Buntrusted+%2Bcertificates+%2B"c%23"

Hi,
Aldus.

Il 13/09/2010 19.44, astromag ha scritto:
>  Hi,
>  I wrotea small application (test) of type client - server(Tcp/Ip, SSL).
>  Unfortunately it doeas not work under linux (server on Linux - client on M$
>  Windows), in M$ Windows it works.
>  It turned out, that server stops on method AuthenticateAsServer of class
>  SslStream.

[...]

>     --- End of inner exception stack trace ---
>     at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback
>  (IAsyncResu
>  lt asyncResult) [0x00000] in<filename unknown>:0
>
>  I ask for help.


-- 
------------------------------------------------------------------
"If you are thinking one year ahead, sow seed.
If you are thinking ten years ahead, plant a tree.
If you are thinking one hundred years ahead, educate the people."
                                Kuan Tze, Chinese poet, 400 B.C.




More information about the Mono-list mailing list