If you know about NGINX and servers, Webinoly is for you!
0 votes
351 views
by Rookie
Hey,

I'm getting the following error when cron runs:
certbot renew --post-hook "service nginx restart"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Processing /etc/letsencrypt/renewal/mydomain.com.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Cert is due for renewal, auto-renewing...

Plugins selected: Authenticator webroot, Installer None

Renewing an existing certificate

Performing the following challenges:

http-01 challenge for mydomain.com

http-01 challenge for www.mydomain.com

Cleaning up challenges

Attempting to renew cert (mydomain.com) from /etc/letsencrypt/renewal/mydomain.com.conf produced an unexpected error: Missing command line flag or config entry for this setting:

Input the webroot for mydomain.com:. Skipping.

-----------------------------------

Any idea what needs to be done?
Thanks in advance.

1 Answer

0 votes
by Expert
by Rookie
So I need to upgrade the current certbot for letsencrypt to work again?
apt-get does not handle it?
by Expert

What I understand of this issue is that your current cert was created with a certbot versión with this bug, maybe now you have an updated versión, so yes, apt-get does the job.

So, reading the link of the oficial Let's Encrypt community, I think you have 2 options:

  1. Delete your current cert and then create a new one.
  2. Edit you cert conf file and add the missing webroot lines.
The first option is really easy with Webinoly!
Regards.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...