go-acme/lego
GitHub: go-acme/lego
使用 Go 语言编写的 ACME 客户端与库,支持自动化申请、续期 SSL/TLS 证书并兼容大量 DNS 服务商。
Stars: 9306 | Forks: 1114
Automatic Certificates and HTTPS for everyone.
# Lego
使用 Go 语言编写的 [ACME](https://www.rfc-editor.org/rfc/rfc8555.html) 客户端和库,适用于 Let's Encrypt 及其他 ACME CA。
[](https://pkg.go.dev/github.com/go-acme/lego/v4)
[](https://github.com//go-acme/lego/actions)
[](https://hub.docker.com/r/goacme/lego/)
## 功能特性
- ACME v2 [RFC 8555](https://www.rfc-editor.org/rfc/rfc8555.html)
- 支持 [RFC 8737](https://www.rfc-editor.org/rfc/rfc8737.html):TLS 应用层协议协商 (ALPN) 质询扩展
- 支持 [RFC 8738](https://www.rfc-editor.org/rfc/rfc8738.html):IP 地址证书
- 支持 [RFC 9773](https://www.rfc-editor.org/rfc/rfc9773.html):续期信息 (ARI) 扩展
- 支持 [draft-ietf-acme-profiles-00](https://datatracker.ietf.org/doc/draft-ietf-acme-profiles/):配置文件扩展
- 内置约 [180 个 DNS 提供商](https://go-acme.github.io/lego/dns)
- 向 CA 注册
- 获取证书,支持从头申请或使用现有的 CSR
- 续期证书
- 吊销证书
- 健壮的 ACME 质询实现:
- HTTP (http-01)
- DNS (dns-01)
- TLS (tls-alpn-01)
- SAN 证书支持
- 默认支持 [CNAME](https://letsencrypt.org/2019/10/09/onboarding-your-customers-with-lets-encrypt-and-acme.html)
- [自定义质询求解器](https://go-acme.github.io/lego/usage/library/writing-a-challenge-solver/)
- 证书捆绑
- OCSP 辅助函数
## 安装
如何[安装](https://go-acme.github.io/lego/installation/)。
## 用法
- 作为 [CLI](https://go-acme.github.io/lego/usage/cli)
- 作为 [库](https://go-acme.github.io/lego/usage/library)
## 文档
文档托管在 https://go-acme.github.io/lego/。
## DNS 提供商
详细文档可在[此处](https://go-acme.github.io/lego/dns)找到。
如果不支持您的 DNS 提供商,请提交一个 [issue](https://github.com/go-acme/lego/issues/new?assignees=&labels=enhancement%2C+new-provider&template=new_dns_provider.yml)。
如果不支持您的 DNS 提供商,请提交一个 [issue](https://github.com/go-acme/lego/issues/new?assignees=&labels=enhancement%2C+new-provider&template=new_dns_provider.yml)。
标签:ACME 客户端, DNS 验证, EVTX分析, EVTX分析, Go 语言, HTTPS, Let's Encrypt, SSL/TLS 证书, Web 服务器安全, 密码学, 开发库, 手动系统调用, 日志审计, 自动化证书管理, 证书签发, 请求拦截