# Cert is expiring and don't know how to renew

**URL:** https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832
**Category:** Help
**Created:** [September 2, 2022, 3:55pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832 "2022-09-02T15:55:34Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 3:55pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/1 "2022-09-02T15:55:35Z")

</div>

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [crt.sh | example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: [dat45.com](http://dat45.com)

I ran this command:

It produced this output:

My web server is (include version): Debian 10

The operating system my web server runs on is (include version): Debian

My hosting provider, if applicable, is: [racknerd.com](http://racknerd.com)

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

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):

I read the FAQ but it does not give a procedure to

- renew cert
- set up automatic renewal

I received email from LetsEncrypt that says cert expires in 17 days.

Any help in renewing and setting up auto renew is MUCH appreciated.

Thanks,  
xrack

---

<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: [September 2, 2022, 3:58pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/2 "2022-09-02T15:58:35Z")

</div>

Hi @xrack, and welcome to the LE community forum 🙂

How did you get the last cert?  
What ACME client are you using?

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 4:11pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/3 "2022-09-02T16:11:28Z")

</div>

Hi rg305,  
Thank you for reply.  
Racknerd is my VPS provider AND my Domain registrant.

As I recall, they set up the cert for me initially but refuse to assit me now.  
I am pretty confused about that.

Boy I feel dumb ... don't know the answer to your question about ACME agent.

Thank you.

xrack

---

<div class="post-metadata">

### Author: ![Rip](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rip/32/70863_2.png) [@Rip](https://community.letsencrypt.org/u/Rip)
#### Post date: [September 2, 2022, 4:43pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/4 "2022-09-02T16:43:06Z")

</div>

Hi @xrack !  
In the questionnaire, **you indicated you have root shell access**.  
Could you **please verify that** to be the case by logging in to your VPS?  
This might help sort out your issue as shell access will probably be required to resolve your request. You also indicated no cpanel access.  
My reasoning is based on the following:

```nohighlight
PORT STATE SERVICE
22/tcp filtered ssh - (might prohibit you from logging in- might be on another port)
80/tcp filtered http - (will cause issues for Let's Encrypt to validate your site)
443/tcp filtered https - (Will leave your site inaccessible from the outside world)

```

Please advise.

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 5:43pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/5 "2022-09-02T17:43:25Z")

</div>

Thank you so much for reply and sticking with me.

Sorry for delay in getting back to you .... fingers would not type the correct PW. LOL  
I have just now logged into the sever thru SSH.  
I have root access.

OK here is a mistake that I made in a previous post of mine.

I installed an application; JitsiMeet  
It is a open source vid conf server.

In the installation process of that app, nginx was installed.

Also, during installation, certificate was gotten from LetsEncrypt.

So sorry I did not report this correctly the first time. Daaaa

Thank you.  
xrack

---

<div class="post-metadata">

### Author: ![Rip](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rip/32/70863_2.png) [@Rip](https://community.letsencrypt.org/u/Rip)
#### Post date: [September 2, 2022, 5:55pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/6 "2022-09-02T17:55:05Z")

</div>

> [@xrack](#):
>
> My web server is (include version):

nginx  
OK so I am not an expert on nginx (others here are)

Do you have an ACME client installed? if so which one?  
try sharing the output from:

```nohighlight
which certbot  
OR
certbot certificates

```

At least we can find out if certbot is installed. Ultimately there are lots of ACME clients and we need to know if you have one installed, and if so which one is it and what version it is,

---

<div class="post-metadata">

### Author: ![mcpherrinm](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mcpherrinm/32/59604_2.png) [@mcpherrinm](https://community.letsencrypt.org/u/mcpherrinm)
#### Post date: [September 2, 2022, 6:18pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/7 "2022-09-02T18:18:22Z")

</div>

Looking at the Jitsi Meet script:  
`https://github.com/jitsi/jitsi-meet/blob/master/resources/install-letsencrypt-cert.sh`

It seems like it installs certbot and sets up a cronjob at /etc/cron.weekly/letsencrypt-renew which should log to /var/log/le-renew.log

Can you see if you have a `/var/log/le-renew.log` file on your server, and what it contains?

---

<div class="post-metadata">

### Author: ![Rip](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rip/32/70863_2.png) [@Rip](https://community.letsencrypt.org/u/Rip)
#### Post date: [September 2, 2022, 6:21pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/8 "2022-09-02T18:21:32Z")

</div>

Thanks Matthew! Good catch!

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 7:46pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/9 "2022-09-02T19:46:48Z")

</div>

Thanks so much friends.

I am slugging thru this....

The contents of;  
/etc/cron-weekly/letsencrypt-renew is;

#!/bin/bash  
/usr/bin/certbot renew \>\> /var/log/le-renew.log  
service nginx reload

There are several files in /var/log/letsencrypt

I tried to upload them but GZ files are not permitted by forum software.  
So I unzipped the one with the most recent date.

The latest log file dated today has following contents;

```nohighlight
2022-08-12 10:30:09,243:DEBUG:certbot.main:certbot version: 0.31.0
2022-08-12 10:30:09,245:DEBUG:certbot.main:Arguments: ['-q']
2022-08-12 10:30:09,245:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-08-12 10:30:09,353:DEBUG:certbot.log:Root logging level set at 30
2022-08-12 10:30:09,353:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2022-08-12 10:30:09,444:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x7efc4311f7f0> and installer <certbot.cli._Default object at 0x7efc4311f7f0>
2022-08-12 10:30:09,535:INFO:certbot.renewal:Cert not yet due for renewal
2022-08-12 10:30:09,566:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2022-08-12 10:30:09,566:DEBUG:certbot.renewal:no renewal failures
2022-08-12 12:21:04,711:DEBUG:certbot.main:certbot version: 0.31.0
2022-08-12 12:21:04,712:DEBUG:certbot.main:Arguments: ['-q']
2022-08-12 12:21:04,712:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-08-12 12:21:04,724:DEBUG:certbot.log:Root logging level set at 30
2022-08-12 12:21:04,724:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2022-08-12 12:21:04,737:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x7f32b82a67f0> and installer <certbot.cli._Default object at 0x7f32b82a67f0>
2022-08-12 12:21:04,748:INFO:certbot.renewal:Cert not yet due for renewal
2022-08-12 12:21:04,749:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2022-08-12 12:21:04,749:DEBUG:certbot.renewal:no renewal failures
2022-09-02 13:27:02,673:DEBUG:certbot.main:certbot version: 0.31.0
2022-09-02 13:27:02,675:DEBUG:certbot.main:Arguments: ['-q']
2022-09-02 13:27:02,676:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-09-02 13:27:02,755:DEBUG:certbot.log:Root logging level set at 30
2022-09-02 13:27:02,755:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2022-09-02 13:27:02,823:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x7ff5bb0687f0> and installer <certbot.cli._Default object at 0x7ff5bb0687f0>
2022-09-02 13:27:02,872:DEBUG:certbot.storage:Should renew, less than 30 days before certificate expiry 2022-09-19 18:07:21 UTC.
2022-09-02 13:27:02,872:INFO:certbot.renewal:Cert is due for renewal, auto-renewing...
2022-09-02 13:27:02,872:INFO:certbot.renewal:Non-interactive renewal: random delay of 151 seconds

```

Hope this helps.

Thanks again !  
xrack

---

<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: [September 2, 2022, 8:18pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/10 "2022-09-02T20:18:46Z")

</div>

> [@xrack](#):
>
> Hope this helps.

I'm afraid not, the log file stops at the point the most relevant info should appear.. Is there anything more beyond the current last line?

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 8:50pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/11 "2022-09-02T20:50:44Z")

</div>

Gosh ....

I use WinSCP to browse files.  
I took a snapshot (image) of the directory.  
It is attached.

 ![2022-09-02 15_38_36-_var_log_letsencrypt_snapshot_WinSCP](https://global.discourse-cdn.com/letsencrypt/original/3X/f/8/f866ca10acbef71da30be367832fe773bcc69d3a.jpeg)

The LetsEncrypt renew script;  
letsencrypt-renew

Has the contents;  
#!/bin/bash  
/usr/bin/certbot renew \>\> /var/log/le-renew.log  
service nginx reload

But there is no le-renew.log in the /var/log directory.

Would it make sense to manually run;

/usr/bin/certbot renew \>\> /var/log/le-renew.log  
service nginx reload

???

Thanks so much,  
xrack

---

<div class="post-metadata">

### Author: ![mcpherrinm](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mcpherrinm/32/59604_2.png) [@mcpherrinm](https://community.letsencrypt.org/u/mcpherrinm)
#### Post date: [September 2, 2022, 8:53pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/12 "2022-09-02T20:53:21Z")

</div>

Yes, you can run `/usr/bin/certbot renew` (you don't need the \>\> /var/log/le-renew.log part) and it should print output to your screen showing the status. That will help us figure out what is going wrong. If there were no errors and it renews a cert, you can `service nginx reload` and show us that information too.

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 9:12pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/13 "2022-09-02T21:12:16Z")

</div>

Thanks for reply .... so many folks assisting me 🙂

I attached a screen shot of the result of running;  
/usr/bin/certbot renew

 ![Running_Certbot_renew_manually](https://global.discourse-cdn.com/letsencrypt/original/3X/c/2/c2d42e2d2520eb5f6e34267fb435688690c27f38.jpeg)

Hmmmmmm ... it says not due until Dec 2022,  
but LetsEncrypt says only 17 more days.

I did not restart nginx since renewal did not happen.

Thanks all,  
xrack

---

<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: [September 2, 2022, 9:19pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/14 "2022-09-02T21:19:07Z")

</div>

It seems you have renewed your certificate today at 17:25:06 UTC. Probably _after_ you've received the expiration email from Let's Encrypt.

Depending on _HOW_ Certbot was instructed to get the certificate, it might or might _NOT_ reload your nginx after renewal. You might need to do this manually this time. If reloading nginx was indeed the solution, you might want to automate that after certificate renewal. Please see [User Guide — Certbot 1.29.0 documentation](https://eff-certbot.readthedocs.io/en/stable/using.html#renewing-certificates) and especially the part about renewal hooks.

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 9:31pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/15 "2022-09-02T21:31:45Z")

</div>

Thank you again.

What told you that it has been renewed today?

Now .....  
/var/log/letsencrypt/letsencrype.log appeared a few minutes ago and has data;

2022-09-02 17:05:58,008:DEBUG:certbot.main:certbot version: 0.31.0  
2022-09-02 17:05:58,009:DEBUG:certbot.main:Arguments:   
2022-09-02 17:05:58,010:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)  
2022-09-02 17:05:58,021:DEBUG:certbot.log:Root logging level set at 20  
2022-09-02 17:05:58,021:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log  
2022-09-02 17:05:58,033:DEBUG:certbot.plugins.selection:Requested authenticator \<certbot.cli.\_Default object at 0x7ff971972c18\> and installer \<certbot.cli.\_Default object at 0x7ff971972c18\>  
2022-09-02 17:05:58,041:INFO:certbot.renewal:Cert not yet due for renewal  
2022-09-02 17:05:58,042:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None  
2022-09-02 17:05:58,043:DEBUG:certbot.renewal:no renewal failures

Thanks !  
xrack

---

<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: [September 2, 2022, 9:40pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/16 "2022-09-02T21:40:03Z")

</div>

> [@xrack](#):
>
> What told you that it has been renewed today?

You can see all issued certs for your domain on certificate transparancy log monitors such as crt.sh: [crt.sh | dat45.com](https://crt.sh/?Identity=dat45.com&deduplicate=Y)

This corresponds with your Certbot output saying your current cert is valid until 1 December.

Please see my edit in my post above about reloading the webserver.

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 2, 2022, 10:00pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/17 "2022-09-02T22:00:12Z")

</div>

Thanks so much to all.  
I guess I am all set for now.  
Also, it seems like renewal is automatic.  
Hope I have this all right !

Again, many thanks to all,  
xrack

---

<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: [September 3, 2022, 3:24am UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/18 "2022-09-03T03:24:23Z")

</div>

> [@xrack](#):
>
> it seems like renewal is automatic

Check:  
`crontab -l`  
`systemctl list-timers | grep certbot`

[not sure which way Debian does it]

---

<div class="post-metadata">

### Author: ![xrack](https://avatars.discourse-cdn.com/v4/letter/x/77aa72/32.png) [@xrack](https://community.letsencrypt.org/u/xrack)
#### Post date: [September 3, 2022, 2:33pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/19 "2022-09-03T14:33:24Z")

</div>

Hi rg305 !

Here is what I get;

root@dat45:~# systemctl list-timers | grep certbot  
Sat 2022-09-03 20:27:34 EDT 9h left Sat 2022-09-03 10:24:19 EDT 3min 37s ago certbot.timer certbot.service  
root@dat45:~#

Does this look good?

Many thanks.  
xrack

---

<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: [September 3, 2022, 3:18pm UTC](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832/20 "2022-09-03T15:18:31Z")

</div>

> [@xrack](#):
>
> systemctl list-timers | grep certbot

That's what mine looks like

[Next page](https://community.letsencrypt.org/t/cert-is-expiring-and-dont-know-how-to-renew/183832.md?page=2)
