# Parse error reading JWS

**URL:** <https://community.letsencrypt.org/t/parse-error-reading-jws/164445>\
**Category:** Client dev\
**Created:** [October 31, 2021, 11:00pm UTC](https://community.letsencrypt.org/t/parse-error-reading-jws/164445 "2021-10-31T23:00:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![client](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@client](https://community.letsencrypt.org/u/client)\
**Post date:** [October 31, 2021, 11:00pm UTC](https://community.letsencrypt.org/t/parse-error-reading-jws/164445/1 "2021-10-31T23:00:19Z")

</div>

Hello,

I tried to create an account and therefore need to send a request signed with ES256 (SECP256k1). However, I keep running into the same error :

```nohighlight
{
   "type": "urn:ietf:params:acme:error:malformed",
   "detail": "Parse error reading JWS",
   "status": 400
}

```

Here is an request example generated by this code :

```nohighlight
{'protected': 'eyJhbGciOiAiRVMyNTYiLCAiandrIjogeyJjcnYiOiAiUC0yNTYiLCAia3R5IjogIkVDIiwgIngiOiAiQy1idFQzbHBmYXdlc0lsRXQ0VTFGREtnSGVMX1U3NW8yUU1RQjE0cDdmYyIsICJ5IjogInVGTXZpSklRUVp5VEhtcFZQS1pSNU9XOFNnMHNmOExhTDhVenoxNXd6Qk0ifSwgIm5vbmNlIjogIk5ERmVmOTJxcEhVZFFNVlpCZVF6NUEiLCAidXJsIjogImh0dHBzOi8vbG9jYWxob3N0OjE0MDAwL3NpZ24tbWUtdXAifQ', 'payload': 'eyJ0ZXJtc09mU2VydmljZUFncmVlZCI6IHRydWV9', 'signature': 'wMXK6d_8QQXugMO6tEGD6A29EibOovW48rl0cIuA_LjdJnjqK7NimB-Jnau3n_nbUpYhStHszlUo-c38yby0Xg'}

```

thank you !

---

<div class="post-metadata">

**Author:** ![stewe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/stewe/32/28032_2.png) [@stewe](https://community.letsencrypt.org/u/stewe)\
**Post date:** [October 31, 2021, 11:53pm UTC](https://community.letsencrypt.org/t/parse-error-reading-jws/164445/2 "2021-10-31T23:53:48Z")

</div>

Hello,

one thing I noticed is that you are using the curve `secp256k1`, which is not supported, try using `prime256v1` (P-256) or `secp384r1` (P-384) instead.

---

<div class="post-metadata">

**Author:** ![client](https://avatars.discourse-cdn.com/v4/letter/c/c67d28/32.png) [@client](https://community.letsencrypt.org/u/client)\
**Post date:** [November 1, 2021, 12:02am UTC](https://community.letsencrypt.org/t/parse-error-reading-jws/164445/3 "2021-11-01T00:02:32Z")

</div>

Hello,  
I saw your comment on another post and I tried at the time but it didn't work.  
I just tried again a few minuts ago and it finally works !  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [December 1, 2021, 12:03am UTC](https://community.letsencrypt.org/t/parse-error-reading-jws/164445/4 "2021-12-01T00:03:15Z")

</div>

Closed on December 1, 2021, 12:03am UTC

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