From 0886c37703152b40425ae3ee00aec58e35b7d4f2 Mon Sep 17 00:00:00 2001 From: Adrien Carbonne Date: Tue, 15 Mar 2016 11:38:23 +0100 Subject: [PATCH] Excluding DNS01 and TLSSNI01 challenges if --webroot is used --- cli_handlers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli_handlers.go b/cli_handlers.go index 4ab2e32a..0ef89441 100644 --- a/cli_handlers.go +++ b/cli_handlers.go @@ -61,6 +61,10 @@ func setup(c *cli.Context) (*Configuration, *Account, *acme.Client) { } client.SetChallengeProvider(acme.HTTP01, provider) + + // --webroot=foo indicates that the user specifically want to do a HTTP challenge + // infer that the user also wants to exclude all other challenges + client.ExcludeChallenges([]acme.Challenge{acme.DNS01, acme.TLSSNI01}) } if c.GlobalIsSet("http") { if strings.Index(c.GlobalString("http"), ":") == -1 {