raykichi / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

Problens with accepting a SSL Certificate #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. SSL Certificate has Problems

What is the expected output? What do you see instead?
I want to accept the certificate anyways

Please provide any additional information below.

I tried bedrock.net.AsyncSocket.UntrustedRootOK = true;
But this seems to be old an doesn't prevent the ugly dialog box of appearing.
Then I tried to implement
.OnInvalidCertificate Event of XMPP Stream.
BUT where and how can i set this? I don't find a way. Tried for Hours now. 
PLEASE Help ;)

Original issue reported on code.google.com by fbt...@gmail.com on 7 Feb 2011 at 1:58

GoogleCodeExporter commented 9 years ago
i found 
ServicePointManager.ServerCertificateValidationCallback = delegate { return 
true; };
but i don't know where to insert this code... it doesn't work no matter where i 
put it.

Original comment by fbt...@gmail.com on 7 Feb 2011 at 2:18

GoogleCodeExporter commented 9 years ago
There is an OnInvalidCertificate event fired from your JabberClient instance.  
Return true from it.

Original comment by hil...@gmail.com on 10 Feb 2011 at 5:49

GoogleCodeExporter commented 9 years ago

Original comment by hil...@gmail.com on 10 Feb 2011 at 5:50