PKISharp / ACMESharpCore

An ACME v2 client library for .NET Standard (Let's Encrypt)
MIT License
325 stars 72 forks source link

ZeroSSL bad request problem on Windows #73

Open andrvo opened 1 year ago

andrvo commented 1 year ago

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.