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

notary response signature #153

Open
ebfe opened this issue May 3, 2012 · 0 comments
Open

notary response signature #153

ebfe opened this issue May 3, 2012 · 0 comments

Comments

@ebfe
Copy link
Contributor

ebfe commented May 3, 2012

Currently it is a PITA to verify the signature in notary responses. Since both
signature and signed data are in the same JSON object you first have to parse
the whole response, then reencode the fingerprintList as JSON (which has to be
done manually, as most encoders don't preserve field ordering) with unspecified
whitespace rules (whatever pythons json.dumps does). This is fragile and makes
writing clients/notaries unnecessary hard.

There are a few options to make this easier:

  • JSON in JSON
    {
    data: "fingerprintList: {....}"
    signature: "kasdj..."
    }
  • put the Signature in a HTTP-header and sign the whole response body
  • Drop the signature. The current client doesn't seem to verify it anyways.
    And since its signed with the same key that is used in the handshake, it
    doesn't buy much (except in the case where you want to archive the notary
    responses).

Thoughts?

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