Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

_expected_server_name is null when use_tls is set and anonymous connection enabled. #351

Open
ergin-ozekes opened this issue Mar 12, 2015 · 0 comments
Labels

Comments

@ergin-ozekes
Copy link

If the anonymous connection enabled to xmpp server(openfire 3.9.3) and ssl is enabled the ceritificate verification can not established due to _expected_server_name is null. In the sleekxmpp/xmlstream/xmlstream.py file at the bottom of the connect function if we add below lines before return statement this issue can be fixed.

if connected and self._expected_server_name == '':
self._expected_server_name = host

I've discussed this case with Thomas Calmant and he sad that "you should share this behaviour with the sleekxmpp community"

@bear bear added the Question label Mar 31, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants