ssl3_read_bytes:sslv3 alert certificate unknown

SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown 
 
但是客户端可以连接成功,服务端可以收到客户端的消息
企业微信截图_15630192917369.png
已邀请:

walkor

赞同来自:

sslv3 有安全漏洞,workerman默认屏蔽了sslv3。
你可以改成通过nginx或者apache代理ssl。或者通过改workerman源码把workerman的sslv3打开,位置
https://github.com/walkor/Workerman/blob/master/Connection/TcpConnection.php#L750
 
if($async){
$type = STREAM_CRYPTO_METHOD_SSLv2_CLIENT | STREAM_CRYPTO_METHOD_SSLv23_CLIENT;
}else{
$type = STREAM_CRYPTO_METHOD_SSLv2_SERVER | STREAM_CRYPTO_METHOD_SSLv23_SERVER;
}

改成
 
if($async){
$type = STREAM_CRYPTO_METHOD_SSLv2_CLIENT | STREAM_CRYPTO_METHOD_SSLv23_CLIENT | STREAM_CRYPTO_METHOD_SSLv3_CLIENT;
}else{
$type = STREAM_CRYPTO_METHOD_SSLv2_SERVER | STREAM_CRYPTO_METHOD_SSLv23_SERVER | STREAM_CRYPTO_METHOD_SSLv3_SERVER;
}

restart 重启workemran。

要回复问题请先登录注册