# Nginx on CentOS7续ssl证书 URL: https://chengjinfang.com/posts/2017/bug-certbot-nginx/ Author: 程锦方 Date: 2017-10-31 Tags: #note #linux #bug Summary: CentOS 7 上用 Certbot 为 Nginx 续签 SSL 证书时的报错与处理记录。 ------------------------------------------------------------------------ 证书官网地址: https://certbot.eff.org/#centosrhel7-nginx 用官网的说明方法会报错所以 ``` pip install certbot-nginx certbot certificates//这句忘记干嘛的了 wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto //需要先停止nginx服务 service nginx stop //获取证书 ./certbot-auto certonly --standalone --email you@example.com -d example.com -d www.example.com //以后自动获取ssl证书 ./certbot-auto renew --standalone --email you@example.com -d example.com -d www.example.com service nginx start ``` ------------------------------------------------------------------------ Site: https://chengjinfang.com/ · All Index: https://chengjinfang.com/all/ · RSS: https://chengjinfang.com/rss.xml