forked from TrueCloudLab/lego
Document that --dns=provider specifically selects the DNS challenge
This commit is contained in:
parent
fdc05d2942
commit
030ba6877a
2 changed files with 5 additions and 3 deletions
|
@ -89,7 +89,7 @@ GLOBAL OPTIONS:
|
|||
--exclude, -x [--exclude option --exclude option] Explicitly disallow solvers by name from being used. Solvers: "http-01", "tls-sni-01".
|
||||
--http Set the port and interface to use for HTTP based challenges to listen on. Supported: interface:port or :port
|
||||
--tls Set the port and interface to use for TLS based challenges to listen on. Supported: interface:port or :port
|
||||
--dns Enable the DNS challenge for solving using a provider.
|
||||
--dns Solve a DNS challenge using the specified provider.
|
||||
Credentials for providers have to be passed through environment variables.
|
||||
For a more detailed explanation of the parameters, please see the online docs.
|
||||
Valid providers:
|
||||
|
@ -125,9 +125,11 @@ $ lego --email="foo@bar.com" --domains="example.com" renew
|
|||
Obtain a certificate using the DNS challenge and AWS Route 53:
|
||||
|
||||
```bash
|
||||
$ AWS_REGION=us-east-1 AWS_ACCESS_KEY_ID=my_id AWS_SECRET_ACCESS_KEY=my_key lego --email="foo@bar.com" --domains="example.com" --dns="route53" --exclude="http-01" --exclude="tls-sni-01" run
|
||||
$ AWS_REGION=us-east-1 AWS_ACCESS_KEY_ID=my_id AWS_SECRET_ACCESS_KEY=my_key lego --email="foo@bar.com" --domains="example.com" --dns="route53" run
|
||||
```
|
||||
|
||||
Note that `--dns=foo` implies `--exclude=http-01` and `--exclude=tls-sni-01`. lego will not attempt other challenges if you've told it to use DNS instead.
|
||||
|
||||
lego defaults to communicating with the production Let's Encrypt ACME server. If you'd like to test something without issuing real certificates, consider using the staging endpoint instead:
|
||||
|
||||
```bash
|
||||
|
|
2
cli.go
2
cli.go
|
@ -112,7 +112,7 @@ func main() {
|
|||
},
|
||||
cli.StringFlag{
|
||||
Name: "dns",
|
||||
Usage: "Enable the DNS challenge for solving using a provider." +
|
||||
Usage: "Solve a DNS challenge using the specified provider." +
|
||||
"\n\tCredentials for providers have to be passed through environment variables." +
|
||||
"\n\tFor a more detailed explanation of the parameters, please see the online docs." +
|
||||
"\n\tValid providers:" +
|
||||
|
|
Loading…
Reference in a new issue