rafiki icon indicating copy to clipboard operation
rafiki copied to clipboard

Add content-digest verification to httpsig verification.

Open njlie opened this issue 2 years ago • 2 comments

The content-digest signature component contains a sha-256 hash of the request body. The AS httpsig verifier should verifiy this hash by hashing the request body and making sure it matches.

njlie avatar Oct 04 '22 23:10 njlie

https://github.com/interledger/httpbis-digest-headers https://github.com/digitalbazaar/http-digest-header

wilsonianb avatar Oct 06 '22 22:10 wilsonianb

https://github.com/interledger/httpbis-digest-headers was written specifically for this case. Use it to verify the digest but also ensure the digest header is part of the signed components.

adrianhopebailie avatar Oct 07 '22 14:10 adrianhopebailie