Trying to do POST-as-GET but getting "POST JWS not signed"

GET requests on ACME v2 API has no longer supported so I am doing tests on your staging environment.
I changed my client’s request to POST. Request URL is the same as before.
I am posting JWS that has empty “payload” but I am getting “POST JWS not signed”.
How can I make signed JWS to POST to your API?
Please show me an example.

My domain is:

I ran this command:

It produced this output:
“type”: “urn:ietf:params:acme:error:malformed”,
“detail”: “POST JWS not signed”,
“status”: 400

I can login to a root shell on my machine (yes or no, or I don’t know):

1 Like

There is an example of POST-as-GET in the spec itself:

As you can see, the payload is an empty string (""), but it is otherwise like any other JWS POST request to the ACME server.

If you want examples of how to sign a JWS object, look to the source code of any ACME v2 client in the language of your choice.


Thank you.
I understand the payload field can be empty.
But how am I supposed to get the other stuff like
“alg”, “kid”, “nonce”, “url” and “signature”?
Where do I generate them?

1 Like

They are all part of JWS, which is the scheme used for authentication in ACME - .

If you are unfamiliar with it, it may be easier to start with an existing ACME library to do your tests.

1 Like

No, I am already working with a working ACME client.
But I am fixing the part that used to use GET.
The script that I am working on has nothing to do with JWS because it used to just do GET.
You are saying it won’t be too hard to change GET to POST-as-GET but this is so much work!

1 Like

If you have already implemented a working ACME client, it means you have already implemented signed JWS POST.

It is a very small step to go from POST to POST-as-GET. You just change payload to be blank.

But if your ACME client does not have the ability to do signed JWS POST yet (for example, to create a new order), then yes, it is a lot of work.

1 Like

Yes, my ACME client program is creating new order just before doing authz…
order creation does have JWS generation and POST request.
I can just copy those steps to do authz, right?

1 Like

Yes, you can just copy the JWS generation, and blank the payload. That’s all you need to do.


Look at . If you search for the use of send_req function, sometimes the second argument is "". That is a POST-as-GET use.


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