问题
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