我正在使用FreeBSD 9.2-RELEASE
包裹apache24-2.4.10_2
。
[root@alexus ~]# uname -a
FreeBSD alexus.org 9.2-RELEASE-p5 FreeBSD 9.2-RELEASE-p5 #0 r265974: Wed May 14 07:57:04 PDT 2014 [email protected]:/usr/obj/usr/src/sys/R610 amd64
[root@alexus ~]# httpd -V | head -1
Server version: Apache/2.4.10 (FreeBSD)
[root@alexus ~]#
我正在尝试启用但重新启动服务TLSv1.2
时出现以下错误:apache24
SSLProtocol all -SSLv2 -SSLv3 +TLSv1 +TLSv1.2
[root@alexus /usr/local/etc/apache24/Includes]# service apache24 restart
Performing sanity check on apache24 configuration:
AH00526: Syntax error on line 5 of /usr/local/etc/apache24/Includes/ssl_module.conf:
SSLProtocol: Illegal protocol 'TLSv1.2'
[root@alexus /usr/local/etc/apache24/Includes]#
openssl
附带 FreeBSD,然后我也安装了较新版本的包。
[root@alexus ~]# openssl version
OpenSSL 0.9.8y 5 Feb 2013
[root@alexus ~]# /usr/local/bin/openssl version
OpenSSL 1.0.1i 6 Aug 2014
[root@alexus ~]#
我做错了什么?现在我不得不退回到TLSv1
,有没有办法真正启用它?
* 更新 *
[root@alexus ~]# ldd /usr/local/libexec/apache24/mod_ssl.so
/usr/local/libexec/apache24/mod_ssl.so:
libssl.so.6 => /usr/lib/libssl.so.6 (0x801236000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x8014a0000)
libcrypt.so.5 => /lib/libcrypt.so.5 (0x8018a5000)
libthr.so.3 => /lib/libthr.so.3 (0x801ac8000)
libc.so.7 => /lib/libc.so.7 (0x800824000)
[root@alexus ~]#
答案1
@MichaelHampton 和 @ChrisS 是对的:
/usr/local/libexec/apache24/mod_ssl.so
由于与旧版本的 openssl 链接,因此无法执行此操作/usr/lib/libssl.so.6
。
[root@alexus ~]# ldd /usr/local/libexec/apache24/mod_ssl.so
/usr/local/libexec/apache24/mod_ssl.so:
libssl.so.6 => /usr/lib/libssl.so.6 (0x801236000)
libcrypto.so.6 => /lib/libcrypto.so.6 (0x8014a0000)
libcrypt.so.5 => /lib/libcrypt.so.5 (0x8018a5000)
libthr.so.3 => /lib/libthr.so.3 (0x801ac8000)
libc.so.7 => /lib/libc.so.7 (0x800824000)
[root@alexus ~]#