1
0
mirror of https://github.com/go-acme/lego.git synced 2024-11-25 17:01:48 +02:00

Add the http-01 challenge to the list of solvers

This commit is contained in:
xenolf 2015-11-12 22:32:27 +01:00
parent ba66756d4e
commit 83dc16fa5e

View File

@ -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.
solvers := make(map[string]solver)
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
}