jaxl / JAXL

Asynchronous, non-blocking I/O, event based PHP library for writing custom TCP/IP client and server implementations. From it's previous versions, library inherits a full blown stable support for XMPP protocol stack. In v3.0, support for HTTP protocol stack was also added.
http://jaxl.readthedocs.org/
Other
379 stars 121 forks source link

stream_socket_enable_crypto(): SSL operation failed with code 1 #101

Open vmato opened 4 years ago

vmato commented 4 years ago

Running our JAXL app on windows computer succeed but on BSD server JAXL fails to connect to the same xmpp server with following:

 stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /usr/home/test/xmpp/vendor/jaxl/jaxl/src/JAXL/core/jaxl_socket_client.php on line 175

What can we do with this? Is it possible to slip ssl peer verify?

abhinavsingh commented 4 years ago

@vmato Hi, yes peer verification can be bypassed. Most likely it only needs a flag when calling crypto functions. However, this library is no longer maintained and I haven't touched PHP in about 10 years now. I'll recommend to use an actively maintained library. Thank you.