Installation :: Let’s Encrypt client and ACME library written in Go. (original) (raw)
Binaries
To get the binary just download the latest release for your OS/Arch from the release page and put the binary somewhere convenient. lego does not assume anything about the location you run it from.
From Docker
docker run goacme/lego -hFrom package managers
- ArchLinux (official):
- ArchLinux (AUR) (official):
- Snap (official):
Note: The snap can only write to the/var/snap/lego/common/.legodirectory. - FreeBSD (Ports) (unofficial):
- Gentoo (unofficial):
You can enable GURU repository and then: - Homebrew (unofficial):
or - OpenBSD (Ports) (unofficial):
From sources
Requirements:
- go1.22+.
- environment variable:
GO111MODULE=on
To install the latest version from sources, just run:
go install github.com/go-acme/lego/v4/cmd/lego@latestor
git clone git@github.com:go-acme/lego.git
cd lego
make # tests + doc + build
make build # only build