lego
go-acme.github.io
- Free plan
- macOS
- Linux
- API
- Self-hosted
What lego is
lego is a free, open-source ACME client for obtaining, renewing, and revoking certificates. It is written in Go and can be run as a command-line tool or used as a Go library. It supports wildcard and SAN certificates, with DNS-01, HTTP-01, TLS-ALPN-01, and DNS-PERSIST-01 validation challenges. Multiple ACME servers are supported, including Let’s Encrypt and ZeroSSL. The project lists more than 200 DNS providers, including Cloudflare, Amazon Route 53, Google Cloud DNS, and Azure DNS, and supports CNAME by default. Credentials and DNS settings are supplied through environment variables, with file references and dotenv files also supported. Installation options include prebuilt binaries, Docker, package managers, and installation from source. The maintainers maintain AUR and Snap packages; other listed packages are community maintained. Source installation requires Go 1.25 or later. The project lists support for ACME RFC 8555 and certificate validation and renewal extensions, and links to GitHub issues and discussions for help. The repository uses the MIT license.
Who it suits
lego suits developers and operators who need certificate operations through a command line or Go library. Its DNS provider support and several challenge methods may fit setups using different ACME servers or DNS services.
Good to know, and what to watch
- Obtains, renews, and revokes certificates
- Supports wildcard and SAN certificates
- More than 200 DNS providers are supported
- Available as a CLI and Go library
- Prebuilt binaries and Docker image are provided
- Installing from source requires Go 1.25 or later
- Many listed packages are community maintained
Plans
Every plan and priceFree and open-source
Open source
The verdict
lego offers certificate automation through a CLI or Go library, with a broad set of challenge methods, ACME servers, and DNS integrations. It is free and open source under the MIT license.
What the maker publishes
- ACME servers
- It supports multiple ACME servers, including Let’s Encrypt and ZeroSSL. source
- Certificate authorities
- It supports multiple ACME servers, including Let’s Encrypt and ZeroSSL. source
- Certificate management
- It can obtain, renew, and revoke certificates. source
- Certificate operations
- It can obtain, renew, and revoke certificates, including wildcard and SAN certificates. source
- Certificate types
- It supports wildcard and SAN certificates. source
- Challenge methods
- Supported validation challenges include DNS-01, HTTP-01, TLS-ALPN-01, and DNS-PERSIST-01. source
- Challenges
- It supports DNS-01, HTTP-01, TLS-ALPN-01, and DNS-PERSIST-01 challenges. source
- CNAME
- CNAME is supported by default. source
- Credential configuration
- DNS provider credentials and configuration are passed through environment variables, including values loaded from files or dotenv files. source
- Distribution
- The project provides binaries for operating systems and architectures, a Docker image, and installation instructions for several package managers. source
- DNS credentials
- DNS provider credentials and configuration are passed through environment variables, with support for file references and dotenv files. source
- DNS integrations
- The project says it supports more than 200 DNS providers, with a provider list in its documentation. source
- DNS providers
- The project says it comes with support for more than 200 DNS providers. source
- Go library
- lego can be used as a Go library as well as a command-line client. source
- Install options
- The project documents prebuilt binaries, Docker, package managers, and installation from source. source
- License
- The GitHub repository lists the project under the MIT license. source
- License and cost
- The project describes itself as independent, free, and open source. source
- Package maintenance
- The maintainers maintain the AUR and Snap packages; other listed packages are community maintained. source
- Provider integrations
- Listed DNS integrations include Cloudflare, Amazon Route 53, Google Cloud DNS, and Azure DNS. source
- Purpose
- lego is an ACME client and library written in Go for obtaining and renewing certificates. source
- Security standard
- The project lists support for ACME RFC 8555 and several certificate validation and renewal extensions. source
- Source requirement
- Installing from source requires Go 1.25 or later. source
- Support
- The project links to GitHub issues and discussions for help and community participation. source
- Ways to use
- lego can be used as a command-line interface or as a Go library. source
Checked against the maker's pages on 11 Oct 2026.