swlib / saber

⚔️ Saber, PHP异步协程HTTP客户端 | PHP Coroutine HTTP client - Swoole Humanization Library
https://packagist.org/packages/swlib/saber
Apache License 2.0
976 stars 124 forks source link

WARNING swSSL_connect: SSL_connect(fd=4) failed. Error: error:1414D172:SSL routines:tls12_check_peer_sigalg:wrong signature type[1|370] #132

Closed guoguicheng closed 3 years ago

guoguicheng commented 3 years ago

我遇到一个问题,在SaberGM::get($url);请求的时候本地环境正常,放到服务器端报如下错误 WARNING swSSL_connect: SSL_connect(fd=4) failed. Error: error:1414D172:SSL routines:tls12_check_peer_sigalg:wrong signature type[1|370] HTTP -1 Unknown: Connect timeout! the server is not listening on the port or the network is missing! php --ri swoole 发现本地openssl为1.1.1h(2020),服务端为1.1.1d(2019),大致推测应该是openssl版本的问题

解决办法: 更新openssl-1.1.1d版本到openssl-1.1.1h

wget https://www.openssl.org/source/openssl-1.1.1h.tar.gz \
&& tar zxvf openssl-1.1.1h.tar.gz \
&& cd openssl-1.1.1h \
&& ./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' \
&& make -j$(nproc) \
&& make install \
&& cd .. \
&& rm openssl-1.1.1h.tar.gz \
&& rm -rf openssl-1.1.1h \
&& ldconfig \