JonahGroendal / acme-easy

An ACME client for the browser that authenticates via DNS-01 challenge and supports LetsEncrypt by default.
https://www.npmjs.com/package/acme-easy
MIT License
2 stars 1 forks source link

Dose this have to be that complicated? #16

Open jimmywarting opened 1 year ago

jimmywarting commented 1 year ago

https://github.com/JonahGroendal/acme-easy/blob/f8a034c00af04fda5667093bcfd1a0c3e683754c/index.js#L249-L272

i was using staging and i just tried to do:

fetch(certUrl).then(res => res.text())

and it seemed to work out just fine... didn't need to use any jwt, post, header, or anything complicated.

JonahGroendal commented 1 year ago

It may work for letsencrypt but I believe the ACME standard requires a post-as-get request, but I could be wrong.

https://www.rfc-editor.org/rfc/rfc8555