pkg.soopen package index

brew / rank 2223

Install lego with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget

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

Additional install commands

macOS

Homebrewverified · 100%
brew install lego

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install lego

MacPorts ports tree · security/lego/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add lego

Alpine Linux edge package indexes · lego · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install lego

Debian stable package indexes · lego · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install lego

Fedora Rawhide package metadata · lego · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#lego

nixpkgs package indexes · pkgs/by-name/le/lego/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S lego

Arch Linux sync databases · lego · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install lego

openSUSE Tumbleweed package metadata · lego · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/lego

Scoop official bucket manifest trees · bucket/lego.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id GoACME.lego -e

Windows Package Manager source index · GoACME.lego · source: cdn.winget.microsoft.com

overview

Package summary

Let's Encrypt client and ACME library

Commands and aliases

  • lego

history

Project history and usage

Lego is an ACME client and Go library for obtaining, renewing, and revoking certificates from Let's Encrypt and other ACME certificate authorities.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2015: The project started before Let's Encrypt's public beta.
  • 2015-12-03: Dependency metadata records lego v0.1.0.
  • 2019-03: RFC 8555 standardized ACME v2.
  • 2024-09-05: The project disclosed GHSA-q82r-2j7m-9rv4 for HTTPS enforcement in ACME API use.
  • 2026-05: Official docs listed more than 200 DNS providers.

Related projects

  • Related ACME clients include Certbot, acme.sh, dehydrated, Caddy's automatic HTTPS stack, Traefik's ACME support, win-acme, and Boulder, the Let's Encrypt CA software. Related standards include ACME RFC 8555 and challenge specifications such as HTTP-01, DNS-01, and TLS-ALPN-01.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
legoexecutableindexed executableDiscovered from the local executable index.

freshness

Version and 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.

page generated2026-08-03
manager version5.3.1
manager updated2026-07-26
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:lego
Version5.3.1
Package managerHomebrew
Homepagehttps://go-acme.github.io/lego/
Repositoryhttps://github.com/go-acme/lego
Last updated2026-07-26T13:41:01+02:00
Pulseupdated
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

lego 4.9.1-2

Let's Encrypt client

https://github.com/go-acme/lego

sudo apt install lego
  • Section: devel
  • Architecture: amd64
  • Source Package: golang-github-xenolf-lego
  • 2 dependencies
  • normalized package name match
  • Matched by: Lego
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lego from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

lego

nix profile install nixpkgs#lego
  • normalized package name match
  • Matched by: Lego
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/le/lego/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

lego 4.9.1-2

Let's Encrypt client

https://github.com/go-acme/lego

sudo apt install lego
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: golang-github-xenolf-lego
  • 2 dependencies
  • normalized package name match
  • Matched by: Lego
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lego from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

lego 4.35.2-r2

Let's Encrypt client and ACME library written in Go

https://github.com/go-acme/lego

sudo apk add lego
  • License: MIT
  • Architecture: x86_64
  • Source Package: lego
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lego
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lego from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

lego-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-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: lego
  • normalized package name match
  • Matched by: Lego
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: lego-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

lego 5.3.1-1.fc45

Let's Encrypt/ACME client written in Go

https://github.com/go-acme/lego

sudo dnf install lego
  • License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lego
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Lego
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lego from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman95%

lego 5.3.1-1

Lets Encrypt client and ACME library

https://go-acme.github.io/lego

sudo pacman -S lego
  • License: MIT
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Lego
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lego from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

lego 5.3.1-1.2

Let's Encrypt/ACME client and library written in Go

https://github.com/go-acme/lego

sudo zypper install lego
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: lego
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lego
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lego from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

lego

sudo port install lego
  • normalized package name match
  • Matched by: Lego
MacPorts ports tree · api.github.com · MacPorts ports tree: security/lego/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/lego

scoop install main/lego
  • normalized package name match
  • Matched by: Lego
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/lego.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

GoACME.lego

winget install --id GoACME.lego -e
  • normalized package name match
  • Matched by: Lego
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: GoACME.lego from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation