lostystyg / acme-lw

Another Let's Encrypt client library
MIT License
0 stars 0 forks source link

Retry request on badNonce error #1

Open lostystyg opened 3 years ago

lostystyg commented 3 years ago

There is a big possibility for badNonce error during requests to acme. Simply try more times to avoid it. E.x. acme-tiny tries to resend request for 100 times

lostystyg commented 3 years ago

Currently this lib generates jwk only once for all request : that is the reason it fails commonly. Consider generate new jwk for each request. Probably rework all sending requests logic due to bad SRP that doesn't allow to resolve this issue currently.