Replace certbot-auto with

Hi to All,

I've two VPS Debian 8 based, Apache2 web server, that I'm going to upgrade to another Linux distro, process that will take a few months.
Every certs made by Let'sEncrypt and different domains in a single certificate.

Actually, "certbot-auto" seems that it is no longer usable:

Your system is not supported by certbot-auto anymore.
Certbot will no longer receive updates.
Please visit to check for other alternatives.

So I think (suggest me if it's the right way) to migrate to "".

Is it correct to do this procedure? ->

  1. remove "certbot-auto" ->
    certbot delete
  2. remove old certbot "garbage" ->
    apt remove --purge certbot python-certbot
  3. Install ->
    curl | sh
  4. run "" to obtain the certs -> --issue --apache -d -d -d -d -d
  5. create the new cron entry ->
    0 0 * * * "/home/user/"/ --cron --home "/etc/letsencrypt/live/" > /dev/null

Could be fine?

Many thanks!!


Hi @danjde

that looks bad.

Never remove certificates if they are in use.


First step 3 - 5. Install another client, create a certificate, install the certificate.

Then triple-check if the new certificates are used.

I would only remove the Certbot cron job. Ignore the other things, you can delete these months later.



I don't think those are doing the same thing.
certbot delete can be used to delete certificates issued by certbot.
remove "certbot-auto" sounds like you want to remove the certbot program itself.

But as @JuergenAuer stated, you don't want to delete anything before replacing it with another working system.
So, start at step #3.


Thanks Rudy!
I will follow your hint!

For the right cron syntax I'll ask to the "" developers.

Thanks again!



This command wouldn't remove certbot-auto; it would rather delete certificates that have been issued using that software. Not recommended, certainly not until you had replacement certs issued and working.

If you're considering doing this, it's because you have OS packages of certbot installed--in that case, there's no reason for you to be using certbot-auto. What's the output of certbot --version?

In any event, I'm all for removing certbot and its mess of Python dependencies, and works pretty well for me. I believe its installation process will create the cron job for you, so you wouldn't need to manually add that.



Actually on my system I've installed from deb packages "certbot 1.9.0" and certbot-auto 1.0.0.
I'm using certbot-auto 1.0.0, certbot result installed but unused.
In the next month, I will migrate from Debian to Centos, now I need to overcome the certbot-auto block, even if I am happy I think about leaving certbot.

Sure, this is what I will do!
But still not clear to me, the usage.
I currently use a cumulative certificate, placed into


and would like to fetch all certs not using the "home" path as suggested by documentation, but only the above path, for security reason.

I write to the developers, but the answer wasn't entirely clear to me, can you show to me any basic example for shell and cron usage, considering my requirement above?

Many thanks!

1 Like

Locate Certbot - Auto Package. For those of you who configured SSL using the Click-to-deploy and Bitnami SSL tutorials, your certbot - auto package was downloaded to your home directory.

Seriously, why? The .deb package is a recent version--there's simply no reason for you to have certbot-auto installed.

It's easy enough to tell where you want to put the cert/chain/key, but it's still ordinarily going to have its own "home" directory where it stores the account config file, account key, etc. I don't see any reason to change that--what "security reason" do you see as a concern?

If I wanted to issue a cert and place its relevant files in /etc/letsencrypt/live/, here's how I'd do it: --issue -d -d # add whatever other parameters may be needed for issuance--DNS host, webroot, etc. --install-cert -d --cert-file /etc/letsencrypt/live/ --key-file /etc/letsencrypt/live/ --fullchain-file /etc/letsencrypt/live/ --reloadCmd 'systemctl reload httpd’

The --reloadCmd flag would be altered to restart or reload whatever service(s) use this cert. And the default cron job will run daily and renew the cert when necessary.


Yes, it was my surprise too, but if I execute certbot --version obtain "certbot 1.9.0" and executing certbot-auto --version obtain 1.0.0. Queering from "apt" (certbot) obtain "0.10.2" Also in my opinion there is something strange, but I want to go further, in any case this is the past..

Mah, simply I would like to set all certs into a "only root readable" directory, as certbot does. it's not better?

Well, so i couldn't set a predefined directory for issuing a cert as "/etc"

Right! :wink:

The last (but not least) question: certbot allowed me to execute a command only in the situation where it ended successfully. Do you know if it is possible with ""?

Thanks again!

1 Like

There are several options:

  --reloadcmd <command>     Command to execute after issue/renew to reload the server.
  --renew-hook <command>    Command to be run after each successfully renewed certificate.
  --deploy-hook <hookname>  The hook file to deploy cert

In that case, it's easy--install as root, then its home directory is in root's home directory, which is only root-readable. I'd still probably want to tell it to put the cert/chain/key files somewhere outside of /root, but that's easy to do with the command I gave above.

If you have particular ownership/permission requirements for the installed cert/chain/key, after the first time you install them (i.e., once you run --install-cert), change the ownership and permissions as won't change them going forward. When installs a new cert (as would happen in a renewal), it cats the new cert over the old one, which means ownership and permissions don't change.


Simply perfect, I just have to try :wink:


Yes, you made this point very clear :wink:

WAW! Wonderful!

At this point I seem to have gathered enough information, now is the time to try, I will not fail to update you and publish the procedure that I am going to adopt!

Really thanks to all of you!


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