Apache 部署HTTPSvim
注:確認開啓 Include conf/extra/httpd-ssl.conf 模塊。安全
配置HTTPS測試
一、編輯SSL配置文件ui
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
二、重啓服務測試spa
systemctl restart httpd