Pebble error unmarshalling body JSON

Pebble is rejecting a JSON body with this error,

  type: "urn:ietf:params:acme:error:malformed",
  detail: "Error unmarshaling body JSON",
  status: 400

Here is the JWS (pretty printed) sent to the new account url,


Weird thing is it works fine with the Let's Encrypt staging API, just not Pebble.

I'm also running Pebble with -strict false.

Any ideas?

Looking at RFC 8555 Section 7.3.4, I do not believe that setting externalAccountBinding to false is valid. You must either omit it, if not using EAB, or supply a JWS object as EAB. There is no indication in the spec that you can supply a boolean here.


That was it.

Forgot to fix that up.



In the future (I'm guessing there are about some 10 to 20 new threads to come) please provide more information than just the JWS. I'd prefer to also have the plain text input and code which generated the output et cetera.

In this case @Nummer378 was kind enough to do all the decoding work for you, but this might not be the case in the future. If you provide more information to begin with, more volunteers will be enclined to react to your threads.


Ok. No worries.

I actually saw another thread where someone had provided the encoded payload and thought it prudent as that’s a more ‘pure’ representation of what’s being sent.

As for 10 to 20 new threads to come, you’ll be glad to know I now have a working prototype.

I’m hanging around to see if there’s anything I might be able to help with in future.

Thanks again everyone for the help.


Sure, the encoded payload is mostly the required stuff, but IMO "more = better" :slight_smile:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.