# Let's Encrypt Expiry Bot

**URL:** <https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708>\
**Category:** Developer help\
**Created:** [October 23, 2019, 9:15pm UTC](https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708 "2019-10-23T21:15:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [October 23, 2019, 9:15pm UTC](https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708/1 "2019-10-23T21:15:06Z")

</div>

Hello,  
Using Ubuntu 18.04.2 with Ghost 2.37.0  
I have never modified any settings of Lets Encrypt/Acme  
I installed Ghost following your official guide.

The following email has just arrived:

> Hello,
> 
> Your certificate (or certificates) for names listed below will expire in 10 days (on 02 Nov 19 21:00 +0000). Please, make your renewal certified before then, or your website will encounter errors.
> 
> We recommend renewing certificates automatically when they have a third of them  
> total lifetime left. For Let’s Encrypt’s current 90-day certificates, that means  
> renewing 30 days before expiration. If it’s  
> [Integration Guide - Let's Encrypt](https://letsencrypt.org/docs/integration-guide/) for details.
> 
> mydomain.it

I tried to manually start the command I have in crontab:  
`"/etc/letsencrypt"/acme.sh --cron --home "/etc/letsencrypt" > /dev/null`

I get the following error:

```
[Wed Oct 23 23:04:23 CEST 2019] Error, can not get domain token entry mydomain.it
[Wed Oct 23 23:04:23 CEST 2019] Please add '--debug' or '--log' to check more details.
[Wed Oct 23 23:04:23 CEST 2019] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
[Wed Oct 23 23:04:23 CEST 2019] Error renew mydomain.it.

```

I re-launched the command with the **–log** parameter, this is the result:

**EDIT**  
Updated pastebin log with **–debug** parameter too:

> **[\[Wed Oct 23 23:04:45 CEST 2019\] Using config home:/etc/letsencrypt\[Wed Oct 23...](https://pastebin.com/e4rvBq11)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Some idea?

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [October 24, 2019, 6:07pm UTC](https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708/2 "2019-10-24T18:07:01Z")

</div>

> [@\`ghost setup ssl\`: Error, can not get domain token entry](https://forum.ghost.org/t/ghost-setup-ssl-error-can-not-get-domain-token-entry/9426/3):
>
> Hello, i’ve the same problem. Have you solved it somehow? On the web I found someone who says to update acme or launch the command using some additional parameter, but I’m afraid of compromising the system, I haven’t tried it yet.

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [October 26, 2019, 12:13pm UTC](https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708/3 "2019-10-26T12:13:11Z")

</div>

Well I talked to myself in this topic, I update it for someone who may have the same problem.

Update acme.sh like this:  
`"/etc/letsencrypt"/acme.sh --upgrade --home "/etc/letsencrypt"`

Then update the certificates:  
`"/etc/letsencrypt"/acme.sh --cron --home "/etc/letsencrypt" > /dev/null`

Certificates should be updated.

---

<div class="post-metadata">

**Author:** ![Shadowbottle](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/shadowbottle/32/2014_2.png) [@Shadowbottle](https://forum.ghost.org/u/Shadowbottle)\
**Post date:** [December 9, 2019, 1:51am UTC](https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708/4 "2019-12-09T01:51:50Z")

</div>

Thank you for coming back and updating this thread with your solution. Saved mah bacon! \<3

---

<div class="post-metadata">

**Author:** ![robdodson](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/robdodson/32/2336_2.png) [@robdodson](https://forum.ghost.org/u/robdodson)\
**Post date:** [December 17, 2019, 5:38pm UTC](https://forum.ghost.org/t/lets-encrypt-expiry-bot/9708/5 "2019-12-17T17:38:15Z")

</div>

yes thank you! this was very helpful
