Linux command
acme.sh-dns 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Issue
export CF_Token="[token]" && acme.sh --issue -d [example.com] --dns dns_cf
Example
export AWS_ACCESS_KEY_ID="[key]" && export AWS_SECRET_ACCESS_KEY="[secret]" && acme.sh --issue -d [example.com] --dns dns_aws
Example
export DO_API_KEY="[token]" && acme.sh --issue -d [example.com] --dns dns_dgon
Example
acme.sh --issue -d [example.com] -d [*.example.com] --dns dns_cf
说明
acme.sh DNS mode enables automated certificate issuance using DNS-01 validation. This method proves domain ownership by creating a specific TXT record in the domain's DNS zone. It's required for wildcard certificates and useful when HTTP validation isn't possible. The tool supports over 100 DNS providers through API integration. Credentials are typically provided via environment variables, and acme.sh handles creating and removing the validation records automatically.
参数
- --dns _provider_
- DNS provider plugin name (dns_cf, dns_aws, dns_gd, dns_ali, etc.)
- --dnssleep _seconds_
- Seconds to wait for DNS propagation (default: automatic)
- --dns-alias _domain_
- Use alias domain for DNS validation (CNAME delegation)
- -d _domain_
- Domain name (repeat for wildcards: -d example.com -d *.example.com)
FAQ
What is the acme.sh-dns command used for?
acme.sh DNS mode enables automated certificate issuance using DNS-01 validation. This method proves domain ownership by creating a specific TXT record in the domain's DNS zone. It's required for wildcard certificates and useful when HTTP validation isn't possible. The tool supports over 100 DNS providers through API integration. Credentials are typically provided via environment variables, and acme.sh handles creating and removing the validation records automatically.
How do I run a basic acme.sh-dns example?
Run `export CF_Token="[token]" && acme.sh --issue -d [example.com] --dns dns_cf` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --dns _provider_ do in acme.sh-dns?
DNS provider plugin name (dns_cf, dns_aws, dns_gd, dns_ali, etc.)