|
一:安装ssl模块
[pre]yum -y install mod_ssl[/pre]
二:编辑ssl配置文件
[pre] vi /etc/httpd/conf.d/ssl.conf[/pre]
[pre]
# line 59: uncomment
DocumentRoot "/var/www/html"
# line 60: uncomment and specify the server name
ServerName www.srv.world:443
SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2
# 填写下载的crt
SSLCertificateFile /etc/pki/tls/certs/server.crt
# 填写下载的key
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
[/pre]
三:重启Apache
[pre]systemctl restart httpd [/pre]
|
|