其他分享
首页 > 其他分享> > ssl – 更改已注册的letsencrypt证书的webroot路径

ssl – 更改已注册的letsencrypt证书的webroot路径

作者:互联网

我是Let’s Encrypt证书的新手.我按照此命令在digitalocean.com上为nginx服务器注册了我的域名

cd /opt/letsencrypt ./letsencrypt-auto certonly -a webroot
–webroot-path=/usr/share/nginx/html -d mydomain.com -d www.mydomain.com

它工作正常.然后我将我的webroot路径更改为我的域的/ var / www / xxx.
现在当我试图更新我的letsencrypt证书时,它正在收到错误.
然后我回滚我的webroot路径,再试一次,续订工作完美.
现在我的问题是如何更改我的注册webroot-path for Let’s Encrypt?

解决方法:

在/etc/letsencrypt/renewal/mydomain.conf中更改它

authenticator = webroot
webroot_path=/var/www/xxx/

和关键时刻花了我几个小时搞清楚 – 用webroot_path = / var / www / xxx /配置webroot-path = / var / www / xxx配置webrooth路径,注意下划线

标签:nginx,ssl,lets-encrypt
来源: https://codeday.me/bug/20190715/1465588.html