Closed marcosmarcolin closed 2 years ago
In order to pass TLS options, you need to use the Ratchet\Client\Connector
class instead of the connect()
function and pass it an instance of React\Socket\Connector
. See https://github.com/ratchetphp/Pawl/issues/53#issuecomment-800522810 and https://github.com/ratchetphp/Pawl/issues/72
In order to pass TLS options, you need to use the
Ratchet\Client\Connector
class instead of theconnect()
function and pass it an instance ofReact\Socket\Connector
. See #53 (comment) and #72
Thanks for the quick feedback Clue, I already tested it and it worked correctly, hug!
https://github.com/ratchetphp/Pawl/issues/47
Hello, all right?
I have a problem similar to the issue above, but even escaping the certificate validation I have the problem occurring.
Follow my codes.
Server.php
Client.php with problem
JS Working perfectly
"Connection to 192.168.25.150:8888 failed during TLS handshake: Unable to complete TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed"
Can anyone help? Thank you!