Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Jul 28, 2021 · 0 comments

Comments

@guoguicheng
Copy link

我遇到一个问题,在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 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant