1, 检查是否安装扩展

如果没有就yum安装

  yum install mod_ssl openssl

  rpm -qa| grep mod_ssl

Centos7.2配置https

  rpm -qa| grep openssl

Centos7.2配置https

安装完成后会生成一个

  /etc/httpd/conf.d/ssl.conf文件

然后把申请的证书上传上去自定义一个目录

创建一个存放证书的目录

  mkdir /etc/httpd/conf/ssl/

Centos7.2配置https

上传证书

Centos7.2配置https

开始配置ssl.conf文件,对源文件做备份

Centos7.2配置https

开启你网站的目录

Centos7.2配置https

将servername设置为你的域名

Centos7.2配置https

注释掉原有的

SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM

Centos7.2配置https

开启ssl,设置为SSLHonorCipherOrder on

Centos7.2配置https

配置你证书路径

Centos7.2配置https

Centos7.2配置https

Centos7.2配置https

重启apache就好了!

如果访问时候没有权限就需要配置httpd.conf

Centos7.2配置https

连接地址:https://blog.csdn.net/th_csdn/article/details/80706921

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-11-28
  • 2021-11-29
  • 2022-12-23
  • 2021-04-06
  • 2022-01-21
猜你喜欢
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-10-28
  • 2022-01-24
相关资源
相似解决方案