Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA

我的未来我决定 提交于 2021-02-19 04:09:45

问题


I've been following this tutorial to add SSH Certification to my site. However at the moment this method does not work for the time-being due to a security flaw, so here is the alternate method. I'm trying to implement the alternate code-paste: sudo certbot --authenticator webroot --webroot-path <path to served directory> --installer nginx -d <domain> however am not sure what to put in <path to served directory>.

Is the "path to served directory" the nginx config? Would it look something like this: etc/nginx/sites-available/<projectname>?


回答1:


You may have tried this already, but I found this to work, at least until an update is issued:

sudo certbot --authenticator standalone --installer nginx -d mydomain.com -d www.mydomain2.com --pre-hook "service nginx stop" --post-hook "service nginx start"



回答2:


If you are on for debian/ubuntu and running apache this will work for you :

    sudo certbot --authenticator standalone --installer apache -d <yourdomain(s)> --pre-hook "apache2ctl stop" --post-hook "apache2ctl start"

Source : Github



来源:https://stackoverflow.com/questions/48271187/client-with-the-currently-selected-authenticator-does-not-support-any-combinatio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!