certbot更新后,我应该重新启动或重新加载nginx吗?

时间:2020-06-21 04:21:48

标签: ssl nginx centos certbot systemctl

我对certbot具有以下续订配置:

# Options used in the renewal process
[renewalparams]
authenticator = webroot
account = ***
webroot_path = /home/whoever/website/public,
server = https://acme-v02.api.letsencrypt.org/directory
[[webroot_map]]

我已经安排了crontab中的任务来每天检查续订:

0 3 * * * certbot renew --post-hook "systemctl restart nginx"

我要在续订时重新启动Nginx,但是systemctl reload nginxsystemctl reload-or-restart nginx呢?以下哪项是使用Nginx处理证书续订的理想方式? 我什至需要重启nginx来获取/使用新证书吗?

0 个答案:

没有答案