raykichi / jabber-net

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

Certificate does not comply with policy. #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Error: 

Errors: RemoteCertificateNameMismatch, RemoteCertificateChainErrors
bedrock.net.CertificateException: Certificate does not comply with policy.
   at bedrock.net.AsyncSocket.StartTLS() in
i:\Code\Jabber\bedrock\net\AsyncSock
et.cs:line 1009
   at jabber.connection.SocketStanzaStream.StartTLS() in
i:\Code\Jabber\jabber\c
onnection\SocketStanzaStream.cs:line 384
   at jabber.connection.XmppStream.StartTLS() in
i:\Code\Jabber\jabber\connectio
n\XmppStream.cs:line 1370

I receive this error when connecting to any Jabber server.
I am using the latest subversion build, using .net 2.0 in sharp dev.
I am going to look through the code and see what exactly is causing this
problem, but before i did that id figured i would ask if you have seen this
error, and know a work around. I have also attached a text file with the
console client output thanks.

Dave.

Original issue reported on code.google.com by did...@gmail.com on 25 Nov 2007 at 5:57

Attachments:

GoogleCodeExporter commented 9 years ago
Did you:

bedrock.net.AsyncSocket.UntrustedRootOK = true;

as specified in FAQ_UntrustedRootOK?  It's also possible that the cert doesn't 
have the right name on it.

Original comment by hil...@gmail.com on 26 Nov 2007 at 2:58

GoogleCodeExporter commented 9 years ago
Yeah, i set bedrock.net.AsyncSocket.UntrustedRootOK = true. I would say its 
possible
the cert doesnt have the right name on it, but i receive the same error, while 
trying
to connect to jabber.net's servers, which i would hope would have correct certs.

Original comment by did...@gmail.com on 26 Nov 2007 at 1:41

GoogleCodeExporter commented 9 years ago
Are you sure you're contacting jabber.net?  I don't see a server running there. 
 Do
you mean jabber.org?  The example code seems to work for me at the moment with
jabber.org.

Set a breakpoint in bedrock.net.AsyncSocket.ValidateServerCertificate, and 
examine
sslPolicyErrors to diagnose further, please.

Original comment by hil...@gmail.com on 26 Nov 2007 at 5:35

GoogleCodeExporter commented 9 years ago
Sorry, i meant jabber.org. I will do that, thank you for the advice.
Dave. 

Original comment by did...@gmail.com on 26 Nov 2007 at 6:20

GoogleCodeExporter commented 9 years ago
Sorry, 
I have looked at the server i was mainly trying to connect to and the servers 
certs
were mismatched, i apologize. I am now receiving an error saying it is unable 
to bind
the policy, but i acknowledge this is most likely a server configuration error, 
sorry
for the inconvenience.

Original comment by did...@gmail.com on 26 Nov 2007 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
No problem.  Open a new ticket if you find something.

Original comment by hil...@gmail.com on 27 Nov 2007 at 7:05