Issue renewing SSL


My domain is:

I ran this command:
sudo lego --tls --email="" --domains=“” --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!


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

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

lego v2:

sudo lego --tls --email="" --domains="" --domains="" --path="/etc/lego" run

lego v1:

sudo lego --exclude="http-01" --email="" --domains="" --domains="" --path="/etc/lego" run

closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.