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

ECDSA signature verification fails #19

Closed
codeglobally opened this issue Jan 9, 2023 · 3 comments · Fixed by #28
Closed

ECDSA signature verification fails #19

codeglobally opened this issue Jan 9, 2023 · 3 comments · Fixed by #28
Labels
bug Something isn't working

Comments

@codeglobally
Copy link
Collaborator

Describe the bug
Signature verification fails when using ECDSA keys, either SECP356R1 or SECP256K1. RSA and EdDSA based keys verify as expected.

To Reproduce
Execute the following commands replacing 'node' with the target host, 'identifier' with the network identifier created with ECDSA keys. Follow standard CCF member authentication for 'service_cert', 'signing_key_pem' and 'signing_cert_pem'.

./scurl.sh https://<node>/app/identifiers/<identifier/signature/sign --cacert <service_cert> --signing-key <signing_key_pem> --signing-cert <signing_cert_pem> -H "content-type: plain/text" --data "Text to sign" -X POST | jq

./scurl.sh https://<node>/app/identifiers/<identifier>/signature/sign --cacert <service_cert> --signing-key <signing_key_pem> --signing-cert <signing_cert_pem> -H "content-type: plain/text" -d '{"payload":"Text to sign","signer":"<identifier>", "signature":"<signature>"}' -X POST

Expected behavior
Signature verification should return true.

@codeglobally codeglobally added the bug Something isn't working label Jan 9, 2023
@codeglobally
Copy link
Collaborator Author

This has been identified as a crypto bug in CCF. Will wait for the fix before intercepting.

@achamayou
Copy link
Member

@codeglobally
Copy link
Collaborator Author

Thank you @achamayou

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants