Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroSSL bad request problem on Windows #73

Open
andrvo opened this issue Apr 18, 2023 · 0 comments
Open

ZeroSSL bad request problem on Windows #73

andrvo opened this issue Apr 18, 2023 · 0 comments

Comments

@andrvo
Copy link

andrvo commented Apr 18, 2023

Hi!

Could you change JwsHelper.cs, line 94 formatting argument of SerializeObject to Formatting.None?

return JsonConvert.SerializeObject(jwsFlatJS, Formatting.None);

It is set to Formatting.Indented now, it causes serializer to generate \r\n while running on Windows. And that leads to "bad request" response from ZeroSSL to literally any signed request.

Works ok on Mac/Linux, likely ZeroSSL can parse either \r or \n, but not both.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant