Excluding DNS01 and TLSSNI01 challenges if --webroot is used

This commit is contained in:
Adrien Carbonne 2016-03-15 11:38:23 +01:00
parent 4116254e6c
commit 0886c37703

View file

@ -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 {