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://m.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;
// 自動加載類
require_once __DIR__ . '/../../vendor/autoload.php';
require_once __DIR__ . '/defined.php';
// gateway 進程,這里使用Text協(xié)議,可以用telnet測試
$context = array(
'ssl' => array(
// 請使用絕對路徑
'local_cert' => 'D:\websocket\ws.pem',
'local_pk' => 'D:\websocket\ws.key',
'verify_peer' => false,
)
);
// websocket協(xié)議(端口任意,只要沒有被其它程序占用就行)
$gateway = new Gateway(GATEWAYADDRESS,$context);
// 開啟SSL,websocket+SSL 即wss
$gateway->transport = 'ssl';
// gateway名稱,status方便查看
$gateway->name = 'YourAppGateway';
// gateway進程數(shù)
$gateway->count = 4;
// 本機ip,分布式部署時使用內(nèi)網(wǎng)ip
$gateway->lanIp = INTRANETIP;
// 內(nèi)部通訊起始端口,假如$gateway->count=4,起始端口為4000
// 則一般會使用4000 4001 4002 4003 4個端口作為內(nèi)部通訊端口
$gateway->startPort = 2900;
// 服務注冊地址
$gateway->registerAddress = REGISTERADDRESS;
// 如果不是在根目錄啟動,則運行runAll方法
if(!defined('GLOBAL_START'))
{
Worker::runAll();
}
D:websocket\ws.pem
D:websocket\ws.key
你確認磁盤路徑是這樣的?