作者:【吴业亮】
博客:https://wuyeliang.blog.youkuaiyun.com/
1、申请证书
https://help.aliyun.com/document_detail/98571.html?spm=a2c4g.11186623.6.561.68196ad7AvQemn`
2、从阿里云上下载申请的证书
3、证书说明
[root@wyl 1602304_www.test.cn_apache]# ll
total 12
-rw-r--r-- 1 root root 1679 Dec 12 21:21 1602304_www.test.cn_chain.crt 证书链
-rw-r--r-- 1 root root 1675 Dec 12 21:21 1602304_www.test.cn.key 私钥
-rw-r--r-- 1 root root 2021 Dec 12 21:21 1602304_www.test.cn_public.crt 公钥
4、修改配置文件/etc/httpd/conf.d/ssl.conf:
修改加密协议如下
SSLProtocol all -SSLv2 -SSLv3
将服务器证书公钥配置到该路径下
SSLCertificateFile conf/ssl.crt/test.wosign.com.crt 证书公钥)
将服务器证书私钥配置到该路径下
SSLCertificateKeyFile conf/ssl.key/test.wosign.com.key (证书私钥)
将服务器证书链配置到该路径下
#SSLCertificateChainFile conf/ssl.crt/root_bundle.crt(证书链)删除行首的“#”号注释符
5、重启服务
service httpd restart
6、测试SSL证书
在浏览器地址栏输入:https://test.com (申请证书的域名)测试您的SSL证书是否安装成功,如果成功,则浏览器地址栏后方会显示一个安全锁标志。测试站点证书的安装配置。