mod_ssl 对比 mod24_ssl AWS

mod_ssl vs mod24_ssl AWS

通过议案为我的网站启动 TLS 和 运行。我在 AWS 文档下阅读

sudo yum install -y mod24_ssl

但在某些依赖项上发生冲突。

我最后读了一篇博客,其中有人提到 sudo yum install mod_ssl,我最终 运行 没有任何问题。有人可以告诉我这是否安全吗? mod_ssl 和 mod24_ssl 有什么区别?

谢谢

正如@stdunbar 所说,mod_ssl 适用于 Apache 2.2,mod24_ssl 适用于 Apache 2.4。

我们可以看到包的描述都差不多,除了版本:

[ec2-user]$ yum info mod_ssl
Available Packages
Name        : mod_ssl
Arch        : x86_64
Epoch       : 1
Version     : 2.2.32
Release     : 1.9.amzn1
Size        : 107 k
Repo        : amzn-updates/latest
Summary     : SSL/TLS module for the Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
            : server via the Secure Sockets Layer (SSL) and Transport Layer
            : Security (TLS) protocols.

[ec2-user]$ yum info mod24_ssl
Installed Packages
Name        : mod24_ssl
Arch        : x86_64
Epoch       : 1
Version     : 2.4.27
Release     : 3.71.amzn1
Size        : 224 k
Repo        : installed
From repo   : amzn-updates
Summary     : SSL/TLS module for the Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
            : server via the Secure Sockets Layer (SSL) and Transport Layer
            : Security (TLS) protocols.

我们可以看到每个包依赖什么 yum deplist:

[ec2-user]$ yum deplist mod_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
26 packages excluded due to repository priority protections
package: mod_ssl.x86_64 1:2.2.32-1.9.amzn1
  ... snip ...
  dependency: httpd = 2.2.32-1.9.amzn1
   provider: httpd.x86_64 2.2.32-1.9.amzn1
  ... snip ...

[ec2-user]$ yum deplist mod24_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
26 packages excluded due to repository priority protections
package: mod24_ssl.x86_64 1:2.4.27-3.71.amzn1
  ... snip ...
  dependency: httpd24 = 2.4.27-3.71.amzn1
   provider: httpd24.x86_64 2.4.27-3.71.amzn1
  ... snip ...

httpdhttpd24 冲突--不能同时安装。

如果您的 AWS 实例正在使用 Amazon Linux 2 AMI,您将使用 mod_ssl 安装 Apache 2.4。

请注意 mod_ssl 版本为“2.4.6”,AWS 存储库为 "amzn2-core"。

Available Packages
Name        : mod_ssl
Arch        : x86_64
Epoch       : 1
Version     : 2.4.6
Release     : 67.amzn2.6.1
Size        : 110 k
Repo        : amzn2-core/2017.12/x86_64
Summary     : SSL/TLS module for the Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
            : server via the Secure Sockets Layer (SSL) and Transport Layer
            : Security (TLS) protocols.