JWS verification error #7
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I am getting errors when trying to create some ssl certificate.
I am running multi domains, and i see the error on domain without www prefix.
(The certificate for domain with www prefix successfully created)
Thanks
The error message is:
Hello!
Thanks for letting me know about this.
I'm not sure from just looking at this alone why you'd be getting that error, but I've got a few suggestions:
Double check that
dig +short yourdomain.com
returns the correct results.Double check that you are putting the file you need in a place that the webserver can access.
Watch the quickstart video at https://git.coolaj86.com/coolaj86/greenlock-express.js and see if that works for you.
That should help us to narrow it down.
Hi,
Thank you for the response.
I checked the dig +short and all seems to be okey.
I would like to explain my situation with more details.
The server is running 2 instances of Node.js (with PM2), and those instances serve https request for multi domains at the same time.
When the error above shows, after restarting the instance, the creation of the first certificate, for one (new) domain, is okey. but when new https request for another domain is coming the creating failed with the above error.
P.S. i cannot capture the error in my code, it's only output to the console.
Thank you
Hmmm... that sounds like perhaps you're storing the token in memory and when the request comes in it's going to the second node instance, but only the first has the correct token?
I'd recommend simplifying to better identify where the problem exists:
Thanks
I tried with one instance only with no help..
I am using greenlock-express with le-store-redis
Thanks
Hi,
I tried in another server to use one account (Email) for all the domains.
i get the error "JWS has an invalid anti-replay nonce", and success after retry.
Thanks
That helps me to mentally narrow it down a bit.
I've been working on getting everything that I need for ECDSA key support in greenlock. As I'm getting that pulled in I'll investigate this further.
Thank you
Hey! I haven't added ECDSA support yet, but as I was doing some code cleanup in preparation for that I found a bug in the RSA PEM to JWK conversion. In certain cases it would generate the wrong thumbprint (for technical reasons related to how signed big ints are encoded in PEM/ASN.1).
Instead, now I'm using Rasha.js, which handles the edge cases properly.
It seems totally possible to me this was related to the problem you encountered with JWS.
I'd recommend that you update to the latest of the following:
The new version also significantly reduces the number of dependencies and the code size. Yay!
I'm closing this out, but feel free to re-open if need be.
Hi,
I'm seeing similar errors ever since I upgraded my service to greenlock. About 90% of the errors are
badNonce
, and the rest aremalformed
.We are on node v10.15.0 using
All of them are the latest versions, except
rsa-compat
, but looking at the changes, don't see anything that would fix the problem by bumping to v2.0.2. In any case esa-compat@1.9.2 is a dependency of acme-v2@1.5.2, so can't really bump it till there is a newacme-v2
release.badNonce
error trace -malformed
error trace -