Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification of signed payload not implemented? #574

Open
capri-san opened this issue Sep 2, 2022 · 0 comments
Open

Verification of signed payload not implemented? #574

capri-san opened this issue Sep 2, 2022 · 0 comments

Comments

@capri-san
Copy link

Verification of a signed payload with a key registered in hashicorp vault returns 404 message

Configuration

QKM connected to hashicorp vault using latest image from "consensys/quorum-key-manager:latest"

Steps to reproduce

  1. Run QKM properly connected to Hashicorp Vault
  2. Sign a payload issuing something like: curl -X POST --data '{"data": "bXkgZGF0YSB0byBiZSBzaWduZWQgeSByZWxsZW5vLi4="}' -H "Content-Type:application/json" 'http://localhost:8080/stores/hashicorp-keys/keys/my-test-key/sign' Which returns something like RcHF2pI7gkQKV77DBB3u1mdkziOsfeIo+H3fxPQBPpsUBHglILnbZVQxQurcQ5LbrInaqX1+bzHvzgKWBnveOw== (the signed payload)
  3. Try to verify that this signature was in fact done by my-test-key issuing: curl -X POST --data '{"data": "bXkgZGF0YSB0byBiZSBzaWduZWQgeSByZWxsZW5vLi4=", "curve": "secp256k1","signingAlgorithm": "ecdsa","signature":"RcHF2pI7gkQKV77DBB3u1mdkziOsfeIo+H3fxPQBPpsUBHglILnbZVQxQurcQ5LbrInaqX1+bzHvzgKWBnveOw==","publicKey":"BNo3IM1KWtwEqrkAfOJpwWZqQ3M7s4h1Ig+L/WV40kh7rxBOgYmJ1H6iS+ygFHNwQzLeSvwGG8/nUx8HcvZwpLg="}' -H "Content-Type:application/json" 'http://localhost:8080/keys/verify-signature'

Actual result

Returns 404 page not found

Expected result

A 20x message indicating that the verification was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant