lego/acme
Daniel McCarney 1164f441bd Client: Do not send a JWS body when POSTing challenges. (#689)
* Client: Do not send a JWS body when POSTing challenges.

In legacy ACME there was a requirement to send a JWS body that contained
a key authorization as part of all challenge initiation POSTs. Since
both the client and server can reconstitute the key authorization there
is no need to send it and modern ACME expects challenges to be initiated
with a JWS carrying the trivial empty JSON object (`{}`).  Some ACME
servers (e.g. Pebble in `-strict` mode) will reject all challenge POSTs
that have a legacy JWS body.

This commit updates the LEGO `acme/client.go`'s `validate` function to
send the correct JWS payload for challenge POSTs.
2018-10-29 17:35:49 +01:00
..
testdata Dns from resolv.conf (#293) 2016-11-03 19:37:15 +01:00
challenges.go Homogenization of the DNS provider tests (#671) 2018-10-12 19:29:18 +02:00
client.go Client: Do not send a JWS body when POSTing challenges. (#689) 2018-10-29 17:35:49 +01:00
client_test.go Client: Do not send a JWS body when POSTing challenges. (#689) 2018-10-29 17:35:49 +01:00
crypto.go Migrate to golangci-lint (#644) 2018-09-24 19:07:20 +00:00
crypto_test.go cloudflare: use the official go client. (#658) 2018-10-03 00:02:01 +02:00
dns_challenge.go Add a test helper to manage env vars. (#675) 2018-10-16 17:52:57 +02:00
dns_challenge_manual.go Review DNS providers (#580) 2018-06-21 19:06:16 +02:00
dns_challenge_test.go Migrate to golangci-lint (#644) 2018-09-24 19:07:20 +00:00
error.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
http.go Migrate to golangci-lint (#644) 2018-09-24 19:07:20 +00:00
http_challenge.go Review DNS providers (#580) 2018-06-21 19:06:16 +02:00
http_challenge_server.go Migrate to golangci-lint (#644) 2018-09-24 19:07:20 +00:00
http_challenge_test.go Homogenization of the DNS provider tests (#671) 2018-10-12 19:29:18 +02:00
http_test.go Use Testify. (#630) 2018-09-15 19:16:35 +02:00
jws.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
messages.go ACME V2 support (#555) 2018-05-30 19:53:04 +02:00
provider.go Add ChallengeProviderTimeout type to acme package 2016-03-16 18:17:03 +00:00
tls_alpn_challenge.go Review DNS providers (#580) 2018-06-21 19:06:16 +02:00
tls_alpn_challenge_server.go Migrate to golangci-lint (#644) 2018-09-24 19:07:20 +00:00
tls_alpn_challenge_test.go Homogenization of the DNS provider tests (#671) 2018-10-12 19:29:18 +02:00
utils.go route53: fix challenge. (#665) 2018-10-09 19:03:07 +02:00
utils_test.go Fix WaitFor calls 2016-03-11 04:52:59 +01:00