# How to determine whether certbot is still active

**URL:** <https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589>\
**Category:** Help\
**Created:** [March 9, 2024, 10:51am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589 "2024-03-09T10:51:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 10:51am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/1 "2024-03-09T10:51:05Z")

</div>

certbot 2.9.0

Ubuntu 22.04

A couple of months ago I changed the way I obtained LE certificates to the acme challenge (haproxy allows for this or demands this method).  
The latest files in /etc/letsencrypt/archive/my.domain.org/ are dated Oct 23. Since then no updates. So I can assume that certbot isn't active anymore. How can I determine whether it's really deactivated?

Do the files in /etc/letsencrypt/renewal-hooks/deploy apply only to certbot or are they active for .acme.sh also?

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 9, 2024, 10:52am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/2 "2024-03-09T10:52:51Z")

</div>

And with "active" and "deactivated", you actually mean "Is there a cronjob or systemd timer running"?

Certbot logs all its activity to `/var/log/letsencrypt/` by default, so you should see new logs appear there periodically.

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 11:05am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/3 "2024-03-09T11:05:55Z")

</div>

Thanks. I'm always a bit hesitant to post these logs since I don't know whether the contain sensitive information, keys, etc. but anyway, here is the first log of 2024-03-09\_

```nohighlight
2024-03-09 09:13:16,722:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2024-03-09 09:13:17,243:DEBUG:certbot._internal.main:certbot version: 2.9.0
2024-03-09 09:13:17,243:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/3643/bin/certbot
2024-03-09 09:13:17,243:DEBUG:certbot._internal.main:Arguments: ['-q', '--preconfigured-renewal']
2024-03-09 09:13:17,243:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2024-03-09 09:13:17,254:DEBUG:certbot._internal.log:Root logging level set at 40
2024-03-09 09:13:17,255:DEBUG:certbot._internal.display.obj:Notifying user: Processing /etc/letsencrypt/renewal/mail.kukulies.org.conf
2024-03-09 09:13:17,257:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2024-03-09 09:13:17,257:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2024-03-09 09:13:17,277:DEBUG:certbot._internal.storage:Should renew, less than 30 days before certificate expiry 2024-01-21 14:22:17 UTC.
2024-03-09 09:13:17,277:INFO:certbot._internal.renewal:Certificate is due for renewal, auto-renewing...
2024-03-09 09:13:17,278:INFO:certbot._internal.renewal:Non-interactive renewal: random delay of 273.42721788892527 seconds
2024-03-09 09:17:50,789:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2024-03-09 09:17:50,982:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
2024-03-09 09:17:51,258:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: Authenticator, Installer, Plugin
Entry point: EntryPoint(name='apache', value='certbot_apache._internal.entrypoint:ENTRYPOINT', group='certbot.plugins')
Initialized: <certbot_apache._internal.override_debian.DebianConfigurator object at 0x7fb745edb160>
Prep: True
2024-03-09 09:17:51,260:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache

...

httpd not running, trying to start
Action 'graceful' failed.
The Apache error log may have more information.

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
                                                   

```

What I'm wondering about is that there is a certbot apache plugin involved. I'm not running apache.  
(haproxy instead).

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 9, 2024, 11:10am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/4 "2024-03-09T11:10:12Z")

</div>

So it looks like Certbot is installed using `snap` and `snap` is using its systemd timer to run Certbot regularly, so that's good.

What isn't good is that it fails to get a new certificate.

Did you run Apache in the past perhaps? Because Certbot wouldn't do that on its own when renewing. The error is to be expected haproxy is already listening on port 80 and Apache, being started by the Certbot `apache` plugin, also tries to do that..

Note that for the hostname `mail.kukulies.org` currently there's nothing listening on port 80: I'm getting a "connection refused" error currently.

Also note that for the `mail.kukulies.org` hostname you've gotten ZeroSSL certificates for the past few months ([crt.sh | mail.kukulies.org](https://crt.sh/?deduplicate=Y&q=mail.kukulies.org)), not Let's Encrypt certificates.

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 2:00pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/5 "2024-03-09T14:00:10Z")

</div>

> [@Osiris](#):
>
> So it looks like Certbot is installed using `snap` and `snap` is using its systemd timer to run Certbot regularly, so that's good.
> 
> What isn't good is that it fails to get a new certificate.
> 
> Did you run Apache in the past perhaps? Because Certbot wouldn't do that on its own when renewing. The error is to be expected haproxy is already listening on port 80 and Apache, being started by the Certbot `apache` plugin, also tries to do that..

Indeed I did run apache also for some time ago.  
Currently my haproxy server is stopped since I got a problem with the certificate. haproxy requires to have the private key appended to the fullchain.pem file. And that mechanism failed. That's I was digging around in /etc/letsencrypt/renewal-hooks to find a way to assemble this by a post update script.

> [@](#):
>
> Note that for the hostname `mail.kukulies.org` currently there's nothing listening on port 80: I'm getting a "connection refused" error currently.
> 
> Also note that for the `mail.kukulies.org` hostname you've gotten ZeroSSL certificates for the past few months ([crt.sh | mail.kukulies.org](https://crt.sh/?deduplicate=Y&q=mail.kukulies.org)), not Let's Encrypt certificates.

I have no idea why I have this episode with this ZeroSSL C=AT certificate. Is a riddle to me.

I wouldn't mind getting certbot totally out of the way when all can be achieved by acme.

---

<div class="post-metadata">

**Author:** ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)\
**Post date:** [March 9, 2024, 2:29pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/6 "2024-03-09T14:29:31Z")

</div>

> [@Krischu](#):
>
> I have no idea why I have this episode with this ZeroSSL C=AT certificate.

You mentioned acme.sh. It's default CA is ZeroSSL. You need to use the --server option for Let's Encrypt with acme.sh

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 2:31pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/7 "2024-03-09T14:31:40Z")

</div>

(I edited my previous post by another line)

You say --server. What server then ?

---

<div class="post-metadata">

**Author:** ![danb35](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/danb35/32/70869_2.png) [@danb35](https://community.letsencrypt.org/u/danb35)\
**Post date:** [March 9, 2024, 2:33pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/8 "2024-03-09T14:33:24Z")

</div>

> [@Krischu](#):
>
> You say --server. What server then ?

The [acme.sh docs](https://github.com/acmesh-official/acme.sh/wiki/Change-default-CA-to-ZeroSSL) would tell you:

> [@](#):
>
> Will I still be able to use letsencrypt then?
> 
> Yes, of course. You are still free to use any supported CA with providing `--server` parameter.
> 
> ```nohighlight
> acme.sh --issue -d example.com --dns dns_cf --server letsencrypt
> 
> ```
> 
> What if I don't like this change? I want to stick to letsencrypt?
> 
> Yes, sure. You can `--set-default-ca` now or any time you like. Then acme.sh will always use the default ca you set:
> 
> ```nohighlight
> acme.sh --set-default-ca --server letsencrypt
> 
> ```

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 3:06pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/9 "2024-03-09T15:06:27Z")

</div>

So if I'd use `acme.sh --issue -d mydomain1.tld -d mydomain2.tld --dns dns_cf --server letsencrypt`  
the scripts in `/etc/letsencrypt/renewal-hooks/deploy` apply?

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 9, 2024, 3:08pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/10 "2024-03-09T15:08:35Z")

</div>

A) where does the `--dns dns_cf` suddenly come from?

B) why would the Certbot scripts from `/etc/letsencrypt/renewal-hooks/deploy` suddenly apply to `acme.sh`? The `--server` option only changes, well, the used ACME server..

I would recommend to read and learn more about what an ACME server and ACME client is and how they work.

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 3:10pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/11 "2024-03-09T15:10:44Z")

</div>

> [@Osiris](#):
>
> A) where does the `--dns dns_cf` suddenly come from?

Danb35 introduced it in his reply 🙂

> [@](#):
>
> B) why would the Certbot scripts from `/etc/letsencrypt/renewal-hooks/deploy` suddenly apply to `acme.sh`? The `--server` option only changes, well, the used ACME server..
> 
> I would recommend to read and learn more about what an ACME server and ACME client is and how they work.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 9, 2024, 3:12pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/12 "2024-03-09T15:12:00Z")

</div>

> [@Krischu](#):
>
> Danb35 introduced it in his reply 🙂

It was part of the example listed in the `acme.sh` documentation, yes, but why would you use it? The text around the example does not specify it. Do you know what the `--dns` option does? If not, why not? It's probably mentioned somewhere in the documentation.

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 3:13pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/13 "2024-03-09T15:13:35Z")

</div>

> [@Osiris](#):
>
> I would recommend to read and learn more about what an ACME server and ACME client is and how they work.

When I decide to use` --server letsencrypt` I wouldn't have to know about ACME server, would I?

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 9, 2024, 3:16pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/14 "2024-03-09T15:16:15Z")

</div>

It's part of the basic concept of ACME and I would recommend every user of an ACME client to know how ACME in general works.

It's just a recommendation. Do with it what you want. For me personally, as a volunteer of this Community, I expect people coming here for help either already have a basic concept of ACME or are autodidactic enough to start learning about it once they are having trouble.

If I notice someone does not have the slightest interest of educating themselves, so they are able to handle issues in the future by themselves, I personally suddenly loose every motivation to help such a person to be honest 🙂 I expect someone coming here for help to also be motivated to do everything in their power to fix the problem, which includes educating themselves.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [March 9, 2024, 3:43pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/15 "2024-03-09T15:43:07Z")

</div>

> [@Krischu](#):
>
> ```nohighlight
> 2024-03-09 09:13:17,277:INFO:certbot._internal.renewal:Certificate is due for renewal, auto-renewing...
> 2024-03-09 09:17:50,789:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
> 2024-03-09 09:17:50,982:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.52
> 
> ```

Clearly, `certbot` is trying to use `Apache`.

Please show this file:

> [@Krischu](#):
>
> `/etc/letsencrypt/renewal/mail.kukulies.org.conf`

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 5:23pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/16 "2024-03-09T17:23:57Z")

</div>

> [@Krischu](#):
>
> /etc/letsencrypt/renewal/mail.kukulies.org.conf

```nohighlight
# renew_before_expiry = 30 days
version = 2.9.0
archive_dir = /etc/letsencrypt/archive/mail.kukulies.org
cert = /etc/letsencrypt/live/mail.kukulies.org/cert.pem
privkey = /etc/letsencrypt/live/mail.kukulies.org/privkey.pem
chain = /etc/letsencrypt/live/mail.kukulies.org/chain.pem
fullchain = /etc/letsencrypt/live/mail.kukulies.org/fullchain.pem

# Options used in the renewal process
[renewalparams]
account = dfecccbc9a66d368b711f93dd2334490
authenticator = apache
installer = apache
server = https://acme-v02.api.letsencrypt.org/directory
key_type = rsa

```

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 9, 2024, 5:29pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/17 "2024-03-09T17:29:49Z")

</div>

@Osiris I understand your criticism. Normally I'm not reluctant reading docs etc.  
But please understand that often the situation is such that one follows a recipe from a site, tutorial or sth.  
The steps there, e.g. "getting haproxy run with acme.sh" are written down one by one. You follow them step by step and get a result. Like in my case. When using the steps in the tutorial  
you don't have read much about the internals and know little about it. Then something isn't functioning like expected and one is seeking advice, like me doing so here.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 9, 2024, 5:38pm UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/18 "2024-03-09T17:38:34Z")

</div>

I would always recommend looking up the purpose of any new and unfamiliar option to a command if you encounter them. Yes, that might cost some time to do, but personally I never run any command with an option I don't know the function of. And _personally_ I would always look up the function of an option before posting online about it 🙂 Only if I couldn't find any documentation I would ask about it. But that's just my opinion/method.

---

<div class="post-metadata">

**Author:** ![Krischu](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/krischu/32/78266_2.png) [@Krischu](https://community.letsencrypt.org/u/Krischu)\
**Post date:** [March 10, 2024, 11:25am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/19 "2024-03-10T11:25:30Z")

</div>

Again, a question of understanding:

certbot and acme are two different methods to obtain the (Letsencrypt) certificates, right?  
Obviously my certbot is still configured for Apache.

My aim is to run the acme client controlled by haproxy.

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [March 10, 2024, 11:44am UTC](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589/20 "2024-03-10T11:44:05Z")

</div>

> [@Krischu](#):
>
> certbot and acme are two different methods to obtain the (Letsencrypt) certificates, right?

No. Certbot is an ACME client. "ACME" is the name of the protocol set out in RFC 8555. There are many ACME clients out there, including "acme.sh" (which is an ACME client written almost entirely in Bash/sh, hence the `.sh` in the name).

[Next page](https://community.letsencrypt.org/t/how-to-determine-whether-certbot-is-still-active/214589.md?page=2)
