ooh solved it.
Apparently its not enough to just strip BEGIN CERTIFICATE REQUEST and END CERTIFICATE REQUEST from the CSR. I have to convert it from b64 to b64_url.
This was not clear in the example provided in the RFC 8555.
And logically it also don't make sense - since the outer JSON object is b64_url encoded, its "protected" from being "malformed" in the POST request, so technically the inner CSR object should not need it.
Maybe the error message should be more clear - atleast in staging where it doesn't matter so much if "sensitive" information is leaked.
Like: "non-base64-url characters found in CSR" or similiar. Then its immediately clear why its not going through.
My HTML JS ACME2 client works now ![]()
