Coder Social home page Coder Social logo

Comments (6)

youmad avatar youmad commented on July 26, 2024 2

@jpaechnatz You may try with option 'verify_peer' = false:

        $options = [
            'ssl' => [
                'allow_self_signed' => true,
                'verify_peer' => false, // THIS
                'verify_peer_name' => false,
            ],
        ];

from xmpp.

youmad avatar youmad commented on July 26, 2024 1

@jpaechnatz It's already here #31

from xmpp.

resourcemode avatar resourcemode commented on July 26, 2024

Any update on this issue?

@youmad i encounter the same issue. Using your code above fixed it.
Please create a PR.

from xmpp.

bgaillard avatar bgaillard commented on July 26, 2024

Hi, I can also confirm @youmad code fixes the errors with self-signed certificate, perhaps this additional configuration could be passed as an option of the XMPP client ?

$client = new \Client($address);
$client->setSslOptions(
    [
        'allow_self_signed' => true,
        'verify_peer_name' => false
    ]
);

from xmpp.

jpaechnatz avatar jpaechnatz commented on July 26, 2024

I used above patch to get rid of the message, BTW it's a letsencrypt cert:
PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/virtual/obbala/html/kanboard/plugins/Jabber/vendor/fabiang/xmpp/src/Stream/SocketClient.php on line 192

Now getting:
PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/virtual/obbala/html/kanboard/plugins/Jabber/vendor/fabiang/xmpp/src/Stream/SocketClient.php on line 200

Any idea how to fix stream_socket_enable_crypto?

Thanks.

from xmpp.

jpaechnatz avatar jpaechnatz commented on July 26, 2024

Works! Thanks! Could someone provide a patch or config Option for it?

from xmpp.

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.