我一直在关注this tutorial将 SSH 认证添加到我的网站。然而目前这个方法does not work for the time-being due to a security flaw, so here is the alternate method 。我正在尝试实现替代代码粘贴:sudo certbot --authenticator webroot --webroot-path <path to served directory> --installer nginx -d <domain>
但我不知道该输入什么 <path to served directory>
。
“服务目录的路径”是 nginx 配置吗?它看起来像这样吗:etc/nginx/sites-available/<projectname>
?
最佳答案
您可能已经尝试过此操作,但我发现它有效,至少在发布更新之前是这样:
sudo certbot --authenticator standalone --installer nginx -d mydomain.com -d www.mydomain2.com --pre-hook "service nginx stop" --post-hook "service nginx start"
关于security - 当前选择的身份验证器的客户端不支持任何能够满足 CA 要求的质询组合,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48271187/