I am trying for the first time to issue a certificate for a domain and its subdomains on my server.
I am using this command syntax:
sudo certbot certonly --webroot --agree-tos --email myemail@gmail.com -d domain.org -d www.domain.org -w /var/www/domain.org -d mail.domain.org -w /var/www/domain.org.mail -d dev.domain.org -w /var/www/domain.org.dev
however I am getting error: "If you specify multiple webroot paths, one of them must precede all domain flags"
Any help on the correct command would be much appreciated.