3

通过这些动作为我的网站启动并运行 TLS。我在 AWS 文档下阅读到

sudo yum install -y mod24_ssl

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

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

谢谢

4

2 回答 2

5

如果您的 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.
于 2018-01-08T22:39:52.753 回答
3

正如@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冲突——你不能同时安装两者。

于 2017-09-07T16:29:40.643 回答