httpd - 配置SSL证书

Summary

  • 在阿里云申请免费证书,得到如下三个文件

Demo

# 安装软件
yum install mod_ssl openssl httpd -y

# 修改配置文件/etc/httpd/conf.d/ssl.conf,将上述文件传到指定的位置上,然后修改如下配置值即可。
SSLCertificateFile "public.crt证书路径"
SSLCertificateKeyFile ".key证书路径"
SSLCertificateChainFile "chain.crt证书路径"
posted @ 2020-05-21 08:46  duchaoqun  阅读(1470)  评论(0编辑  收藏  举报