【发布时间】:2015-03-16 14:58:37
【问题描述】:
我在 Ubuntu 14.04 LTS 上的 nginx 有问题。有时我会遇到严重错误:
2015/01/18 12:59:44 [crit] 1065#0: *28289 SSL_do_handshake() failed (SSL: error:140A1175:SSL routines:SSL_BYTES_TO_CIPHER_LIST:inappropriate fallback) while SSL handshaking, client: 10.0.2.2, server: 0.0.0.0:443
我检查了我的 OpenSSL 的版本:
root@www:~# ldd `which nginx` | grep ssl
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f39e236b000)
root@www:~# strings /lib/x86_64-linux-gnu/libssl.so.1.0.0 | grep "^OpenSSL "
OpenSSL 1.0.1f 6 Jan 2014
我搜索了有关它的更多信息,发现它可能是旧版本 OpenSSL 的问题。所以我尝试编译最新版本:
wget https://www.openssl.org/source/openssl-1.0.1l.tar.gz && tar xzf && cd openssl-1.0.1l
./config && make && make install
我还通过符号链接将旧的 OpenSSL 二进制文件替换为新的:
ln -sf /usr/local/ssl/bin/openssl `which openssl`
之后我有:
root@www:~# openssl version
OpenSSL 1.0.1l 15 Jan 2015
但我在 nginx 中仍然有旧版本:
root@www:~# strings /lib/x86_64-linux-gnu/libssl.so.1.0.0 | grep "^OpenSSL "
OpenSSL 1.0.1f 6 Jan 2014
更新 OpenSSL 后,我在 Ubuntu 中找不到任何其他新的 libssl。如何更新 libssl 以便 nginx 可以使用最新版本?
P.S.1。可能严重错误的问题与 OpenSSL 的版本无关。
附注 2。我认为这个严重错误可能会影响我的整个虚拟机。我也有“不时”VM崩溃的问题。
我尝试了很多东西,现在我绝望了。 Stackoverflow 请帮忙!
【问题讨论】:
标签: ssl nginx openssl ubuntu-14.04