Issue renewing SSL


#1

My domain is: afuego.us

I ran this command:
sudo lego --tls --email="support@afuego.us" --domains=“afuego.us” --path="/etc/lego" renew

It produced this output:
You have to pass an account (email address) to the program using --email or -m

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No

I was able to renew the SSL before without issues. Please advice, Thank you!


#2

What version of lego are you using? It seems that in some versions, the --tls option expects an argument, and may interpret the next option --email as that argument instead of parsing it as an option itself.

I guess you might be following a tutorial for a different version of lego than the one you have installed?


Error by lego preventing cert renewal
#3

The problem occurs when a user uses the CLI syntax of the lego v2 with the v1 binary.

lego v2:

sudo lego --tls --email="foo@bar.com" --domains="foobar.com" --domains="www.foobar.com" --path="/etc/lego" run

lego v1:

sudo lego --exclude="http-01" --email="foo@bar.com" --domains="foobar.com" --domains="www.foobar.com" --path="/etc/lego" run