macOS
brew install legolocal Homebrew formula metadata
sudo port install legoMacPorts ports tree · security/lego/Portfile · source: api.github.com
brew
Let's Encrypt client and ACME library. Version 5.2.2 via Homebrew; verified 2026-06-02.
install
brew install legolocal Homebrew formula metadata
sudo port install legoMacPorts ports tree · security/lego/Portfile · source: api.github.com
sudo apk add legoAlpine Linux edge package indexes · lego · source: dl-cdn.alpinelinux.org
sudo apt install legoDebian stable package indexes · lego · source: deb.debian.org
nix profile install nixpkgs#legonixpkgs package indexes · pkgs/by-name/le/lego/package.nix · source: api.github.com
sudo pacman -S legoArch Linux sync databases · lego · source: geo.mirror.pkgbuild.com
sudo zypper install legoopenSUSE Tumbleweed package metadata · lego · source: download.opensuse.org
scoop install main/legoScoop official bucket manifest trees · bucket/lego.json · source: api.github.com
winget install --id GoACME.lego -eWindows Package Manager source index · GoACME.lego · source: cdn.winget.microsoft.com
overview
Let's Encrypt client and ACME library
history
Lego is an ACME client and Go library for obtaining, renewing, and revoking certificates from Let's Encrypt and other ACME certificate authorities.
The project began in 2015, before Let's Encrypt's public beta and before ACME became an RFC. A maintainer discussion explains that lego started around the need to make HTTPS automatic in a Go web-server project, at a time when Certbot still had a different name and ACME client tooling was experimental.
Lego evolved into both a command-line client and an embeddable Go library. Its docs emphasize support for ACME v2/RFC 8555, multiple ACME servers, HTTP-01, DNS-01, TLS-ALPN-01, DNS-PERSIST-01, wildcard and SAN certificates, and a large DNS-provider integration matrix.
Lego's package-manager adoption is broad because certificate automation needs simple deployment on servers, containers, NAS devices, and CI hosts. The Homebrew, Debian, Ubuntu, Alpine, Arch, MacPorts, Nix, Scoop, winget, and zypper package presence in the input mirrors that role: it is a practical infrastructure binary rather than a language-only library.
Users commonly call `lego run` or `lego renew` with an email, domains, and a challenge method. DNS-01 support is especially important for wildcard certificates and machines that cannot expose HTTP challenges; the docs maintain per-provider credential and environment-variable pages for that integration surface.
Lego is package-nerd significant because it turned the messy edge of ACME automation into a portable Go binary with hundreds of provider integrations. It also became a library substrate for other Go programs that wanted certificate automation without shelling out to Certbot.
security posture
No matching local secret-handling manifest was found for lego. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
lego | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/go-acme/lego
install metadata
| Package key | brew:lego |
|---|---|
| Version | 5.2.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/lego |
| Homepage | https://go-acme.github.io/lego/ |
| Repository | https://github.com/go-acme/lego |
| Upstream docs | https://go-acme.github.io/lego |
| License | MIT |
| Source archive | https://github.com/go-acme/lego/archive/refs/tags/v5.2.2.tar.gz |
| Last updated | 2026-06-02T16:51:52Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lego |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
lego 4.9.1-2
Let's Encrypt client
https://github.com/go-acme/lego
sudo apt install legolego
nix profile install nixpkgs#legolego 4.9.1-2
Let's Encrypt client
https://github.com/go-acme/lego
sudo apt install legolego 4.35.2-r1
Let's Encrypt client and ACME library written in Go
https://github.com/go-acme/lego
sudo apk add legolego-doc 4.35.2-r1
Let's Encrypt client and ACME library written in Go (documentation)
https://github.com/go-acme/lego
sudo apk add lego-doclego 5.2.2-1
Lets Encrypt client and ACME library
https://go-acme.github.io/lego
sudo pacman -S legolego 5.2.2-1.1
Let's Encrypt/ACME client and library written in Go
https://github.com/go-acme/lego
sudo zypper install legolego
sudo port install legomain/lego
scoop install main/legoGoACME.lego
winget install --id GoACME.lego -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.