# Let’s Encrypt no longer used by ghost-cli

**URL:** <https://forum.ghost.org/t/let-s-encrypt-no-longer-used-by-ghost-cli/24996>\
**Category:** Installation\
**Created:** [August 18, 2021, 1:02pm UTC](https://forum.ghost.org/t/let-s-encrypt-no-longer-used-by-ghost-cli/24996 "2021-08-18T13:02:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StuartMorrisAU](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/stuartmorrisau/32/26117_2.png) [@StuartMorrisAU](https://forum.ghost.org/u/StuartMorrisAU)\
**Post date:** [August 18, 2021, 1:02pm UTC](https://forum.ghost.org/t/let-s-encrypt-no-longer-used-by-ghost-cli/24996/1 "2021-08-18T13:02:16Z")

</div>

If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be closed.

If you aren’t running the latest version of Ghost, the first thing we will ask you to do is update to the latest version of Ghost.

- **What version of Ghost are you using?** ghost-cli 1.17.3

And

- How was Ghost installed and configured? As per the [install guide](https://ghost.org/docs/install/ubuntu/)
- What Node version, database, OS & browser are you using? node 14.17.5, mysql 8.0.26
- What errors or information do you see in the console? See below
- What steps could someone else take to reproduce the issue you’re having? See below

[Version 3 of acme.sh](https://github.com/acmesh-official/acme.sh/releases/tag/3.0.0) changed the default CA from Let’s Encrypt to ZeroSSL (who acquired acme.sh). Running either `ghost install` or `ghost setup ssl` displays a message:

```auto
Setting Up SSL >> Getting SSL Certificate from Let’s Encrypt…

```

but the output in the ghost-cli log shows:

```auto
Using CA: https://acme.zerossl.com/v2/DV90

```

Either ghost-cli should be updated to say it’s using ZeroSSL, or acme.sh should be reconfigured to use LE again with `acme.sh --set-default-ca --server letsencrypt`.

---

<div class="post-metadata">

**Author:** ![prokopton](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@prokopton](https://forum.ghost.org/u/prokopton)\
**Post date:** [December 12, 2021, 4:15pm UTC](https://forum.ghost.org/t/let-s-encrypt-no-longer-used-by-ghost-cli/24996/2 "2021-12-12T16:15:32Z")

</div>

I was informed that ghost was configured to automatically renew the SSL.

I verified this with:

$ sudo crontab -u root -l

Result:

7 0 \* \* \* “/etc/letsencrypt”/acme.sh --cron --home “/etc/letsencrypt” \> /dev/null

It should be configured for auto renew.

However, I received an email from ZeroSSL notifying me:

 ![zerossl-expiring-soon](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/5/a/5af1820f063b997b5fdbaee0bc7335aa5544bdae.png)

I’m assuming you had the same issue. If yes, what did you do?

---

<div class="post-metadata">

**Author:** ![prokopton](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@prokopton](https://forum.ghost.org/u/prokopton)\
**Post date:** [December 12, 2021, 4:28pm UTC](https://forum.ghost.org/t/let-s-encrypt-no-longer-used-by-ghost-cli/24996/3 "2021-12-12T16:28:11Z")

</div>

> [@StuartMorrisAU](#):
>
> acme.sh --set-default-ca --server letsencrypt

$ su root ( cannot do as sudo )  
$ sudo acme.sh --set-default-ca --server letsencrypt  
$ /etc/letsencrypt/acme.sh --upgrade --home “/etc/letsencrypt”

$ su my\_username  
$ sudo certbot renew --dry-run

Failed to renew certificate.

Did you manage to renew the certificate?

Ghost-CLI version: 1.18.1  
Ghost version: 4.27.1
