大网数据广告活动
服务器运维问答

SSLProtocol: Illegal protocol 'TLSv1.2'

· 52CE 我爱测

I'm using FreeBSD 9.2-RELEASE with apache24-2.4.10_2 package. [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 omitted]:/usr/obj/usr/src/sys/R610 a…

问题原文

原帖链接 · alexus · CC BY-SA 3.0

I'm using FreeBSD 9.2-RELEASE with apache24-2.4.10_2 package.

[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 omitted]:/usr/obj/usr/src/sys/R610  amd64
[root@alexus ~]# httpd -V | head -1
Server version: Apache/2.4.10 (FreeBSD)
[root@alexus ~]# 

I'm trying to enable TLSv1.2 and I'm getting following error while restarting apache24 service:

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 comes with FreeBSD and then I installed newer version as package as well.

[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 ~]#

What am I doing wrong? As of now I had to fallback to TLSv1, is there a way to actually enable it?

* UPDATE *

[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 ~]# 

已采纳解答

原帖链接 · alexus · CC BY-SA 3.0

@MichaelHampton & @ChrisS is right:

This cannot be done as /usr/local/libexec/apache24/mod_ssl.so linked against older version of 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 ~]# 

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2014-10-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。