SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1417D18C:SSL routines:tls_process_client_hello:version too low
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1417D18C:SSL routines:tls_process_client_hello:version too low
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09B:SSL routines:ssl3_get_record:https proxy request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1417D18C:SSL routines:tls_process_client_hello:version too low
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL_R_NO_SHARED_CIPHER: no s
uitable shared cipher could be used. This could be because the server is missin
g an SSL certificate (local_cert context option)
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
frame not masked so close the connection
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1417D18C:SSL routines:tls_process_client_hello:version too low
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
SSL handshake error: stream_socket_enable_crypto(): SSL: 2ù×÷3é1|íê3é?£
frame not masked so close the connection
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with co
de 1. OpenSSL Error messages:
error:1408F09C:SSL routines:ssl3_get_record:http request
frame not masked so close the connection
<?php
/**
* This file is part of workerman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.wtbis.cn/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use \Workerman\Worker;
use \Workerman\WebServer;
use \GatewayWorker\Gateway;
use \GatewayWorker\BusinessWorker;
use \Workerman\Autoloader;
// 自動(dòng)加載類(lèi)
require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/defined.php';
// gateway 進(jìn)程,這里使用Text協(xié)議,可以用telnet測(cè)試
$context = array(
'ssl' => array(
// 請(qǐng)使用絕對(duì)路徑
'local_cert' => 'D:\websocket\ws.pem',
'local_pk' => 'D:\websocket\ws.key',
'verify_peer' => false,
)
);
// websocket協(xié)議(端口任意,只要沒(méi)有被其它程序占用就行)
$gateway = new Gateway(GATEWAYADDRESS,$context);
// 開(kāi)啟SSL,websocket+SSL 即wss
$gateway->transport = 'ssl';
// gateway名稱(chēng),status方便查看
$gateway->name = 'YourAppGateway';
// gateway進(jìn)程數(shù)
$gateway->count = 4;
// 本機(jī)ip,分布式部署時(shí)使用內(nèi)網(wǎng)ip
$gateway->lanIp = INTRANETIP;
// 內(nèi)部通訊起始端口,假如$gateway->count=4,起始端口為4000
// 則一般會(huì)使用4000 4001 4002 4003 4個(gè)端口作為內(nèi)部通訊端口
$gateway->startPort = 2900;
// 服務(wù)注冊(cè)地址
$gateway->registerAddress = REGISTERADDRESS;
// 如果不是在根目錄啟動(dòng),則運(yùn)行runAll方法
if(!defined('GLOBAL_START'))
{
Worker::runAll();
}