How to upgrade acme.sh client on Linux cloud server

I need to update acme.sh client on Linux (Ubuntu to be specific). Is it possible? Do you think update will delete or make changes to existing Let’s Encrypt TLS certificates? Tell me how do I update acme.sh client?

Step 1 - See the current version for acme.sh

acme.sh --version

You will see something as follows:

https://github.com/acmesh-official/acme.sh
v2.8.8

Step 2 - Updating or upgrading acme.sh Let’s Encrypt client from Linux or Unix

Again run the following command:

acme.sh --upgrade

You will notice information on the screen:

[Wed Nov 25 13:14:21 UTC 2020] Installing from online archive.
[Wed Nov 25 13:14:21 UTC 2020] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Wed Nov 25 13:14:21 UTC 2020] Extracting master.tar.gz
[Wed Nov 25 13:14:21 UTC 2020] Installing to /root/.acme.sh
[Wed Nov 25 13:14:21 UTC 2020] Installed to /root/.acme.sh/acme.sh
[Wed Nov 25 13:14:21 UTC 2020] Good, bash is found, so change the shebang to use bash as preferred.
[Wed Nov 25 13:14:22 UTC 2020] OK
[Wed Nov 25 13:14:22 UTC 2020] Install success!
[Wed Nov 25 13:14:22 UTC 2020] Upgrade success!

That is all. The upgrade command won’t delete or remove TLS/SSL certificates. However, always keep verified backups. You have backups, don’t you? :wink:

1 Like

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki