forked from TrueCloudLab/lego
correctly fix go1.5 dependency
This commit is contained in:
parent
87e9f08cfa
commit
94caca08d8
1 changed files with 5 additions and 1 deletions
|
@ -33,7 +33,11 @@ func (s *httpChallenge) Solve(chlng challenge, domain string) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
keyThumb := base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(thumbBytes)
|
keyThumb := base64.URLEncoding.EncodeToString(thumbBytes)
|
||||||
|
index := strings.Index(keyThumb, "=")
|
||||||
|
if index != -1 {
|
||||||
|
keyThumb = keyThumb[:index]
|
||||||
|
}
|
||||||
keyAuth := chlng.Token + "." + keyThumb
|
keyAuth := chlng.Token + "." + keyThumb
|
||||||
|
|
||||||
go s.startHTTPServer(domain, chlng.Token, keyAuth)
|
go s.startHTTPServer(domain, chlng.Token, keyAuth)
|
||||||
|
|
Loading…
Reference in a new issue