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: -e vultr.rrgels.site

certbot [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: -e vultr.rrgels.site

You've given us very little to go on, but from the error you posted, it looks like you passed an argument to certbot of -e vultr.rrgels.site. I don't believe -e is a valid argument to certbot; perhaps you meant to use -d vultr.rrgels.site?

5 Likes

i just use this one. my domain name is vultr.rrgels.site

sudo /snap/bin/certbot --webroot -i nginx --agree-tos --hsts --staple-ocsp -d vultr.rrgels.site -e vultr.rrgels.site -w /usr/share/nginx/html/

Where did you get that command from? And in particular, what told you to use -e vultr.rrgels.site? Because, as the error message is telling you, and as I told you in my post, that isn't a valid option to certbot.

4 Likes

i tried to install v2ray to my server. and use this to obtain a free Let’s Encrypt certificate.

Install the latest version of Let’s Encrypt client certbot from the Snap store.

sudo apt install snapd sudo snap install certbot --classic

Then run the following command to obtain a free Let’s Encrypt certificate.

sudo /snap/bin/certbot --webroot -i nginx --agree-tos --hsts --staple-ocsp -d example.com -e you@example.com -w /usr/share/nginx/html/

Once it’s obtained, it will be automatically installed for your Nginx web server.

These have to appear BEFORE the domain name(s) in that command:

"-e" is for an email address then.

2 Likes

I did tried to put also my email. same error

Email addresses contain an "@" symbol.
Try using quotes around the email address:
-m "myemail@address"
OR
--email "myemail@address"
image

2 Likes

root@rrgels:~# sudo /snap/bin/certbot --webroot -i nginx --agree-tos --hsts --staple-ocsp -d vultr.rrgels.site -e gelicamerobin@gmail.com,mzrina01@gmail.com -w /usr/share/nginx/html/
usage:
certbot [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: -e gelicamerobin@gmail.com,mzrina01@gmail.com

-e

is incorrect, use:

-m

See: User Guide — Certbot 2.7.0.dev0 documentation (eff-certbot.readthedocs.io)

3 Likes

-m it work. but another error appear

The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

Please show this file:

1 Like

For --webroot method you need to have HTTP working to your domain. But, requests to that fail with a timeout. Any request fails, not just the Let's Encrypt HTTP challenge.

You need to get that working first before trying to get a cert

A try just for your home page also fails

curl -i -m10 http://vultr.rrgels.site
curl: (28) Connection timed out after 10000 milliseconds
2 Likes

Ok, Thanks

1 Like

I still see it after the domain:
image

2 Likes

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