在安装证书前,为了方便,先关闭防火墙
1,上传apache文件 并改名。
[root@VM_22_193_centos Apache]# mv 1_root_bundle.crt root.crt
[root@VM_22_193_centos Apache]# mv 2_minishop.club.crt server.key
[root@VM_22_193_centos Apache]# mv 2_minishop.club.crt server.crt
2.将证书文件移至ssl文件夹下
#mkdir /etc/httpd/ssl
#mv Apache/* /etc/httpd/ssl
#ls /etc/httpd/ssl
3.编辑ssl.conf
#yum install -y mod_ssl
#vim /etc/httpd/ssl/
确保
注意不要敲错!
最后输入https://域名.com 验证。
参考文章:http://blog.51cto.com/gaowenlong/1885988