By esyassine
Hi,
I am following the instructions in the link below [1] to install an SSL certificate for my domain and I get an error:
#sudo certbot certonly --standalone --preferred-challenges http -d example.com
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: Unexpected line 0 in /etc/letsencrypt/cli.ini: ≈# Because we are using logrotate for greater flexibility, disable the
root@webstore-mongodb:/var/www#
What am I doing wrong?
Thanks.
How To Use Certbot Standalone Mode to Retrieve Let’s Encrypt SSL Certificates on Ubuntu 16.04
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
The error indicates that there is an unexpected line in the /etc/letsencrypt/cli.ini configuration file. This might have happened due to a syntax error or some unexpected characters present in the file.
Have you made any changes to the file? If you have, I’ll recommend following these steps
cli.ini file in a text editor such as nano or vi. You need sudo privileges to edit this file. You can use the following command to open the file:sudo nano /etc/letsencrypt/cli.ini
≈# Because we are using logrotate for greater flexibility, disable the
This line looks like a comment because it starts with #, but the ≈ symbol at the beginning may be causing the issue. It’s not a valid character for the certbot configuration file.
≈ symbol. The corrected line should look like this:# Because we are using logrotate for greater flexibility, disable the
Save and close the file (if you’re using nano, you can do this by pressing Ctrl+X to close, and then Y to confirm saving changes).
Now, try running the certbot command again:
sudo certbot certonly --standalone --preferred-challenges http -d example.com
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.