forked from TrueCloudLab/lego
Add the http-01 challenge to the list of solvers
This commit is contained in:
parent
ba66756d4e
commit
83dc16fa5e
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ func NewClient(caURL string, usr User, keyBits int, optPort string) (*Client, er
|
||||||
// spec to this map. Otherwise they won`t be found.
|
// spec to this map. Otherwise they won`t be found.
|
||||||
solvers := make(map[string]solver)
|
solvers := make(map[string]solver)
|
||||||
solvers["simpleHttp"] = &simpleHTTPChallenge{jws: jws, optPort: optPort}
|
solvers["simpleHttp"] = &simpleHTTPChallenge{jws: jws, optPort: optPort}
|
||||||
|
solvers["http-01"] = &httpChallenge{jws: jws, optPort: optPort}
|
||||||
|
|
||||||
return &Client{directory: dir, user: usr, jws: jws, keyBits: keyBits, solvers: solvers}, nil
|
return &Client{directory: dir, user: usr, jws: jws, keyBits: keyBits, solvers: solvers}, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue