You are here: Home / Debian GNU/Linux / System / Software / Install the certbot client (Let's Encrypt) acme.sh on Debian

Install the certbot client (Let's Encrypt) acme.sh on Debian

by Pierre-Yves Landuré last modified Mar 02, 2018 08:35

acme.sh is a easy to use client for installing and managing SSL certificates provided by Let's Encrypt.

This howto is tested on:

  • Debian 8.0 Jessie

This howto is tested with theses versions of acme.sh:

  • 2.3.2

Parameters

Provide your email adress, used to automaticaly register a Let's Encrypt account:

email="firstname.lastname@domain.com"

Installation

Detect the command proxy (command or sudo):

cmdProxy='command'
command type -f 'sudo' &>'/dev/null' && cmdProxy='sudo

Environment preparation

Install the needed software:

${cmdProxy} apt-get install netcat

Setup

Download and install the software:

command wget -O - 'https://get.acme.sh' | ${cmdProxy} sh

Setup the email address for the Let's Encrypt account:

${cmdProxy} sed -i \
    -e "s/#*ACCOUNT_EMAIL=.*$/ACCOUNT_EMAIL='${email}'/" \
  ~root/.acme.sh/account.conf

Load acme.sh in the current shell:

test -e "${HOME}/.acme.sh/acme.sh.env" && source "${HOME}/.acme.sh/acme.sh.env"

Thanks