Comments (6)
@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.
@jpaechnatz It's already here #31
from xmpp.
Any update on this issue?
@youmad i encounter the same issue. Using your code above fixed it.
Please create a PR.
from xmpp.
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.
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.
Works! Thanks! Could someone provide a patch or config Option for it?
from xmpp.
Related Issues (20)
- How to stable login status?
- Prosody supports
- StanzasErrorException is not triggered
- XML parsing erase some datas when many buffers HOT 2
- Stream Error: "malformed-request" HOT 3
- Add user to group
- How can I subscribe to other users?
- Stream Error: \"host-""unknown\ HOT 2
- stream_socket_client(): Failed to enable crypto HOT 1
- Warning: Fabiang\Xmpp\Stream\XMLStream::clearDocument(): Invalid State Error
- XEPs and RFCs support page with version
- Openfire example
- Seems this repo is dead. Check my fork
- Send Message to All Users
- Bag In documentation
- Seems this repo is dead x2, check my repo
- Receive message HOT 4
- Compatibility with openssl1.1.1 HOT 3
- stream_socket_enable_crypto(): SSL: Success HOT 1
- Starttls error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmpp.