macOS
brew install legolocal Homebrew formula metadata
sudo port install legoMacPorts ports tree · security/lego/Portfile · source: api.github.com
brew / rank 2223
Let's Encrypt client and ACME library. Version 5.3.1 via Homebrew; verified 2026-07-26. Also installable with debian: sudo apt install lego.
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
sudo dnf install legoFedora Rawhide package metadata · lego · source: dl.fedoraproject.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 | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:lego |
|---|---|
| Version | 5.3.1 |
| Package manager | Homebrew |
| Homepage | https://go-acme.github.io/lego/ |
| Repository | https://github.com/go-acme/lego |
| Last updated | 2026-07-26T13:41:01+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
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-r2
Let's Encrypt client and ACME library written in Go
https://github.com/go-acme/lego
sudo apk add legolego-doc 4.35.2-r2
Let's Encrypt client and ACME library written in Go (documentation)
https://github.com/go-acme/lego
sudo apk add lego-doclego 5.3.1-1.fc45
Let's Encrypt/ACME client written in Go
https://github.com/go-acme/lego
sudo dnf install legolego 5.3.1-1
Lets Encrypt client and ACME library
https://go-acme.github.io/lego
sudo pacman -S legolego 5.3.1-1.2
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.