CentOS 7.x下最简单的为nginx生成和维护网站https签名

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/teamlet/article/details/84037451

1、在 CentOS 7.x 下使用yum方式安装cerbot

yum install -y certbot

之前使用wget 的 certbot-auto 脚本,经常出现一些异常:比如python版本问题,操作系统平台依赖包不兼容等问题。

2、安装certbot之后,还要安装一个nginx的插件

yum install python-certbot-nginx

3、然后就可以在nginx 80端口服务启动的情况下,生成签名

certbot --nginx -d youdomain.cn -d www.youdomain.cn --email [email protected]

猜你喜欢

转载自blog.csdn.net/teamlet/article/details/84037451