微信小程序连接workerman报错,请老师指导下。

suncheng

在微信小程序开发工具中可以正常连接,但在手机上连接报错,workerman 版本是3.5.1 php版本是5.6.

----------------------- WORKERMAN -----------------------------
Workerman version:3.5.1          PHP version:5.6.27
------------------------ WORKERS -------------------------------
worker        listen                    processes status
none          websocket://0.0.0.0:1234   1        
----------------------------------------------------------------
Press Ctrl-C to quit. Start success.
PHP Warning:  stream_socket_enable_crypto(): SSL operation failed with code 1. O
penSSL Error messages:
error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown in C
:\phpStudy\WWW\YMF\NofityServer\Workerman\Connection\TcpConnection.php on line 5
39

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSS
L Error messages:
error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown in C
:\phpStudy\WWW\YMF\NofityServer\Workerman\Connection\TcpConnection.php on line 5
39

SSL Handshake fail.
Buffer:
PHP Warning:  stream_socket_enable_crypto(): SSL operation failed with code 1. O
penSSL Error messages:
error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown in C
:\phpStudy\WWW\YMF\NofityServer\Workerman\Connection\TcpConnection.php on line 5
39
7677 5 0
5个回答

suncheng

[attach]769[/attach]

  • 暂无评论
抽不完的寂寞

微信小程序须是443端口吧
不过看到certificate unknown ,貌似是ssl证书有问题。你不会是自己生成的证书吧

  • 暂无评论
25076778

php.ini 禁用了 去里面找到删除即可

  • 暂无评论
啦啦龙

问题解决了吗 我也是遇到这个问题 可以解答一下吗 谢谢

  • 暂无评论
mliev

我也碰到同样的问题,有解决吗?

  • 暂无评论
年代过于久远,无法发表回答
×
🔝