# Certbot Renew Task -Windows Setting

**URL:** <https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282>\
**Category:** Help\
**Created:** [June 19, 2023, 3:30am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282 "2023-06-19T03:30:08Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 19, 2023, 3:30am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/1 "2023-06-19T03:30:08Z")

</div>

I already have Certbot installed in my Windows OS, so it automatically generated a task called Certbot Renew Task in Windows Task Scheduler.

I want to automatically update my certificate and auto restart my Apache to enable them.  
Should I change the Certbot Renew Task? Or should I re-establish a new task

My web server is (include version): apache2.4.56

The operating system my web server runs on is (include version): Windows Server 2019 Standard

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): I don't know

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot): certbot 2.6.0

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [June 19, 2023, 5:31am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/2 "2023-06-19T05:31:05Z")

</div>

If you want to change things so Certbot automatically reloads Apache after a renewal, you don't need to create a new Scheduled Task to do that.

Instead, you can tell Certbot to restart Apache2 for you using the [`certbot reconfigure` command](https://eff-certbot.readthedocs.io/en/stable/using.html#certbot-v2-3-0-and-newer). Something like:

```
certbot reconfigure --cert-name example.com --deploy-hook "service.exe restart apache2.4"

```

(or whatever the appropriate command is on your Windows installation).

Your normal renewal process, initiated by the existing Scheduled Task, will invoke this for you.

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 19, 2023, 6:44am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/3 "2023-06-19T06:44:04Z")

</div>

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/6/c/6c1aa3d1f7c79a2a2a0b31c5a526f0eccd7c37f5.png)

The yellow line is certbot auto renew command, so I should add the command you told me about right?

> certbot reconfigure --cert-name [example.com](http://example.com) --deploy-hook "service.exe restart apache2.4"

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/b/7/b782580f441ecfe33a6c30c0b2bab2a0f6b94c42.png)  
And I want to change this option to "Execute whether user login or not" like yellow line part,but I can't change this option because the option is disable I can't choose.

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/7/0/70ed24f9feb6fa7c3b89a93d0a99b90dbb9525e5.png)  
Should I change the update time?  
image is the default update time for certbot after installation.

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [June 19, 2023, 9:38am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/4 "2023-06-19T09:38:35Z")

</div>

The `certbot reconfigure` command is a once-off command to run, in a terminal. It tells Certbot to restart Apache whenever the certificate renews, and it will remember to always do this in future.

You don't need to modify the scheduled task or create a new one.

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 19, 2023, 10:11am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/5 "2023-06-19T10:11:43Z")

</div>

okay, I got it.

![image](https://global.discourse-cdn.com/letsencrypt/original/3X/b/7/b782580f441ecfe33a6c30c0b2bab2a0f6b94c42.png)  
I want to enable the Certbot Renew Task without the user logging in.

But the "security option" is now selected "only if the user logs in", which is installing the option selected by certbot default I can't modify it.

Is that permission too low? So I can't edit "security option"?  
But now I'm logged in already Administrator.

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 26, 2023, 7:27am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/6 "2023-06-26T07:27:23Z")

</div>

could anybody help me?

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [June 26, 2023, 9:56am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/7 "2023-06-26T09:56:02Z")

</div>

> [@KOKU9408](#):
>
> I want to enable the Certbot Renew Task without the user logging in.

I'm not aware of any way that this can be achieved. There is some discussion about this issue [here](https://github.com/certbot/certbot/issues/8420#issuecomment-790090061).

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 26, 2023, 10:22am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/8 "2023-06-26T10:22:12Z")

</div>

okay, thank you so much 😃

---

<div class="post-metadata">

**Author:** ![petercooperjr](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/petercooperjr/32/84698_2.png) [@petercooperjr](https://community.letsencrypt.org/u/petercooperjr)\
**Post date:** [June 27, 2023, 12:53pm UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/9 "2023-06-27T12:53:52Z")

</div>

You may want to switch to a different [ACME client that's specifically designed for Windows](https://letsencrypt.org/docs/client-options/#clients-windows-/-iis). I know that both [win-acme](https://www.win-acme.com/manual/advanced-use/examples/apache) and [Certify the Web](https://docs.certifytheweb.com/docs/deployment/tasks/apache) have instructions for integrating with Apache on Windows.

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 28, 2023, 3:14am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/10 "2023-06-28T03:14:23Z")

</div>

I need to switch to win-acme?

Because I'm only one step away from completing the automatic update, this step is to re-enable apache after certbot update is complete and re-read the credential information

---

<div class="post-metadata">

**Author:** ![petercooperjr](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/petercooperjr/32/84698_2.png) [@petercooperjr](https://community.letsencrypt.org/u/petercooperjr)\
**Post date:** [June 28, 2023, 4:14pm UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/12 "2023-06-28T16:14:15Z")

</div>

I don't know as you _need_ to; I was just suggesting that if you didn't like how Certbot integrated with Windows, you might want to try some other clients to see if you preferred one of them.

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 29, 2023, 1:30am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/13 "2023-06-29T01:30:48Z")

</div>

okay~

If I choose win-acme do I need to reinstall the certificate ,because it is another certificate generation tool?

---

<div class="post-metadata">

**Author:** ![petercooperjr](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/petercooperjr/32/84698_2.png) [@petercooperjr](https://community.letsencrypt.org/u/petercooperjr)\
**Post date:** [June 29, 2023, 2:29am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/14 "2023-06-29T02:29:24Z")

</div>

If you're going to switch to win-acme, I would recommend uninstalling certbot, installing win-acme, and then just configuring win-acme as needed (which would probably issue a new certificate for your server, yeah). I haven't personally used win-acme (or certbot on Windows, for that matter), so I don't know if other people here with more experience would have better advice on how to transition between them.

---

<div class="post-metadata">

**Author:** ![KOKU9408](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KOKU9408](https://community.letsencrypt.org/u/KOKU9408)\
**Post date:** [June 29, 2023, 3:48am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/15 "2023-06-29T03:48:27Z")

</div>

I think I'd still use certbot first.  
Because it's only one step away from a full update.  
If it really doesn't work, I'll change to win-acme again.  
Thank you for your advice 😄

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [July 29, 2023, 3:48am UTC](https://community.letsencrypt.org/t/certbot-renew-task-windows-setting/200282/16 "2023-07-29T03:48:28Z")

</div>

Closed on July 29, 2023, 3:48am UTC

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