最近网站的证书快到期了,需要更换新的证书,保证网站的正常使用
1.准备好新的证书
将准备好的证书放到nginx存放证书的位置
2.将新的证书修改成原本证书名字
注意原本的证书需要备份,防止意外
或者也可以就用新证书的名字,在nginx配置文件中修改证书名字
3.重新加载nginx
复制代码
1
2
3
4
5[root@localhost ~]# /usr/local/nginx/sbin/nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful [root@localhost ~]# /usr/local/nginx/sbin/nginx -s reload
4.重新访问网站
在网站左边的小锁点击
选择证书
就可以看到证书的详细信息了
可以看到证书已经更换成功
最后
以上就是安详鼠标最近收集整理的关于更换ssl证书的全部内容,更多相关更换ssl证书内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复