配置 – CentOS默认的ssl.conf文件

前端之家收集整理的这篇文章主要介绍了配置 – CentOS默认的ssl.conf文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有人有最新版CentOS的默认ssl.conf文件
我试图了解我是否可以使用自动生成的SSL证书,但我不小心用另一个ssl.conf文件覆盖了它.
只是尝试重新安装mod_ssl.x86_64包.
[sgeorge@sgeorge-ld ~]$sudo rpm -ql mod_ssl.x86_64
[sudo] password for sgeorge: 
/etc/httpd/conf.d/ssl.conf
/usr/lib64/httpd/modules/mod_ssl.so
/var/cache/mod_ssl
/var/cache/mod_ssl/scache.dir
/var/cache/mod_ssl/scache.pag
/var/cache/mod_ssl/scache.sem

我将ssl.conf移动到我的主目录并删除了该软件包,然后重新安装. :)我收到了那个文件.

[sgeorge@sgeorge-ld ~]$sudo mv /etc/httpd/conf.d/ssl.conf ~/

[sgeorge@sgeorge-ld ~]$sudo rpm -ql mod_ssl.x86_64
/etc/httpd/conf.d/ssl.conf
/usr/lib64/httpd/modules/mod_ssl.so
/var/cache/mod_ssl
/var/cache/mod_ssl/scache.dir
/var/cache/mod_ssl/scache.pag
/var/cache/mod_ssl/scache.sem

[sgeorge@sgeorge-ld ~]$sudo rpm -ev mod_ssl.x86_64

[sgeorge@sgeorge-ld ~]$sudo rpm -ql mod_ssl.x86_64
package mod_ssl.x86_64 is not installed

[sgeorge@sgeorge-ld ~]$ls -l /etc/httpd/conf.d/ssl.conf
ls: cannot access /etc/httpd/conf.d/ssl.conf: No such file or directory

[sgeorge@sgeorge-ld ~]$sudo yum install mod_ssl.x86_64
Loaded plugins: downloadonly,product-id,refresh-packagekit,rhnplugin,subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.2.15-9.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================================================================================================
 Package                                                             Arch                                                               Version                                                                       Repository                                                                                        Size
=============================================================================================================================================================================================================================================================================================================================
Installing:
 mod_ssl                                                             x86_64                                                             1:2.2.15-9.el6                                                                release-rhel-x86_64-workstation-6-r1                                                              86 k

Transaction Summary
=============================================================================================================================================================================================================================================================================================================================
Install       1 Package(s)

Total download size: 86 k
Installed size: 0  
Is this ok [y/N]: y
Downloading Packages:
mod_ssl-2.2.15-9.el6.x86_64.rpm                                                                                                                                                                                                                                                                       |  86 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : 1:mod_ssl-2.2.15-9.el6.x86_64                                                                                                                                                                                                                                                                             1/1 
duration: 170(ms)
Installed products updated.

Installed:
  mod_ssl.x86_64 1:2.2.15-9.el6                                                                                                                                                                                                                                                                                              

Complete!
[sgeorge@sgeorge-ld ~]$ls -l /etc/httpd/conf.d/ssl.conf
-rw-r--r-- 1 root root 9473 Dec  8  2009 /etc/httpd/conf.d/ssl.conf

猜你在找的CentOS相关文章