Apache 部署HTTPS

  • 系统:Linux Centos 7.4 x64
  • 应用:Apache 2.4.6
  • 需要安装:mod_ssl

注:确认开启 Include conf/extra/httpd-ssl.conf 模块。


配置HTTPS

1、编辑SSL配置文件

vim /etc/httpd/conf.d/ssl.conf

# 开启SSL
SSLEngine on

# 添加 SSL 协议支持协议,去掉不安全的协议
SSLProtocol all -SSLv2 -SSLv3

# 修改加密套件如下
SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
SSLHonorCipherOrder on

# 证书公钥配置
SSLCertificateFile /etc/httpd/cert/public.pem

# 证书私钥配置
SSLCertificateKeyFile /etc/httpd/cert/21506635644564.key

# 证书链配置,如果该属性开头有 '#'字符,请删除掉
SSLCertificateChainFile /etc/httpd/cert/public.pem

2、重启服务测试

systemctl restart httpd

 

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-04-24
  • 2021-05-12
  • 2021-06-16
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2021-09-02
  • 2021-08-04
  • 2021-09-29
相关资源
相似解决方案