I tried: certbot-auto --expand --authenticator standalone --installer nginx -d example.com -d www.example.com --pre-hook “service nginx stop” --post-hook “service nginx start”
I got an error message: certbot: error: unrecognized arguments: nginx stop” nginx start”
I replaced "
by '
and got good result.
You have smartquotes in your command (“
and ”
) instead of an actual double-quote: "
2 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.