student_11 发表于 2013-1-16 02:16:14

apache ssl

这两天一直在 redhat 上 搞 apache ssl
证书已经做好了,只需要在apache 中的 httpd.conf 配置文件中 修改下即可。
可谁知 发现自己的 apache 没有mod_ssl 这个模块,还以为要下载 mod_ssl.so 这个文件。
网上找啊找,半天也没找到。
最后 想起 redhat 安装盘里 可能有这个模块,一看还真有。
就赶快安装,安装完后 在/etc/httpd/conf.d/目录下会多一个 ssl.conf这个文件,
ssl.conf这个 配置文件已经引入到 apache的httpd.conf 中了,不需要再在httpd.conf做相关配置,否则及会报错。。。

只需要在这个ssl.conf文件下修改证书信息就可以了。
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.crt/localhost.key

附下这个mod_ssl rpm包

redhat系统信息
# lsb-release -a
-bash: lsb-release: command not found
# lsb_release -a
LSB Version::core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:RedHatEnterpriseServer
Description:Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release:5.2
Codename:Tikanga
页: [1]
查看完整版本: apache ssl