laravel项目gatewayWorker配置了wss后无法启动,提示
SSL handshake error: stream_socket_enable_crypto(): SSL operationSSL routines:SSL23_GET_CLIENT_HELLO:http request
项目内wss的配置如下:
$context = array(
'ssl' => array(
'local_cert' => '/ssl/ssl-bundle.crt', // 也可以是crt文件'local_pk' => '/ssl/aaaa.com.key',
'verify_peer' => false$gateway = new Gateway("websocket://0.0.0.0:23460", $context);
$gateway->transport = 'ssl