From 87e9f08cfa5a48028812c732d8c7a29aa4e1e21e Mon Sep 17 00:00:00 2001 From: xenolf Date: Thu, 12 Nov 2015 22:33:00 +0100 Subject: [PATCH] Replace code which needs go1.5 --- acme/http_challenge.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acme/http_challenge.go b/acme/http_challenge.go index cb22a0f8..e0bdfac6 100644 --- a/acme/http_challenge.go +++ b/acme/http_challenge.go @@ -33,7 +33,8 @@ func (s *httpChallenge) Solve(chlng challenge, domain string) error { return err } - keyAuth := chlng.Token + "." + base64.RawURLEncoding.EncodeToString(thumbBytes) + keyThumb := base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(thumbBytes) + keyAuth := chlng.Token + "." + keyThumb go s.startHTTPServer(domain, chlng.Token, keyAuth) var listener net.Listener