[Solved] certbot: error: unrecognized arguments –webroot

Error:-

root@server:~# certbot-auto certonly -d the-d2.com -d www.the-d2.com –webroot “/home/the-d2/public_html”
usage:
certbot-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …
Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
certificate.
certbot: error: unrecognized arguments: /home/the-d2/public_html

Solution:-

certbot-auto certonly -d the-d2.com -d www.the-d2.com --webroot --webroot-path "/home/the-d2/public_html"
  •  The issue was, i was missing the flag –webroot-path , but if you will run certbot-auto –help, you will not find any reference to that flag.

 

Leave a Reply