Git Product home page Git Product logo

Comments (4)

javipalanca avatar javipalanca commented on May 8, 2024 1

The agent constructor already has a verify_security=False flag that should work (it works for me).
A common mistake is to have the username already registered in the server with a different password. Could you check that?

from spade.

javipalanca avatar javipalanca commented on May 8, 2024 1

Ok, let me check that use case and I'll try to figure out how to solve it.

from spade.

mjbogusz avatar mjbogusz commented on May 8, 2024

Update: I've checked with an XMPP server hosted on a real domain with a valid certificate and it works as intended.

How about something like this?

def register(self, accept_selfsigned = False):
    ....
def start(self, auto_register = True, accept_selfsigned = False):
    ...

I'm not sure how difficult it would be.
Additionally I'm not sure whether differentiation between self-signed and otherwise invalid certificates (outdated, rejected, invalid domain etc) is needed at all, maybe just an accept_invalid flag would suffice while probably simplifying the required code.

from spade.

mjbogusz avatar mjbogusz commented on May 8, 2024

The problem is with registering a new account.
If the account is created beforehand, it goes through smoothly; invalid password results in a different error.

I've noticed the verify_security=False flag, but it does not set the STARTTLS to "disabled" or "if-available", and the default value is "required". So my hypothesis is that either the underlying library whines about the cetificate due to the required STARTTLS, or it just ignores the disabled security flag during registration.

from spade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.