Index: extensions/test/data/content_verifier/README |
diff --git a/extensions/test/data/content_verifier/README b/extensions/test/data/content_verifier/README |
index 8379a83c6f325fdffc58f7a60284c417ccdce5ba..b9a8bb618f359b14ba9b9bcbc934595f8c1ba4ba 100644 |
--- a/extensions/test/data/content_verifier/README |
+++ b/extensions/test/data/content_verifier/README |
@@ -5,6 +5,10 @@ openssl genrsa -out private_key.pem 2048 |
openssl rsa -in private_key.pem -pubout -out public_key.pem |
+The payload.json file contains randomly generated base64url encoded sha256 |
+hashes for a set of file paths. |
+ |
+ |
The signature was generated by: |
1) Take the contents of payload.json and base64url encode them: |
@@ -13,8 +17,8 @@ cat payload.json | tr -d \\n | base64 -w0 | tr / _ | tr + \- | tr -d '=' > paylo |
2) Put the contents of payload_encoded.txt into the "payload" field of |
verified_contents.json. |
-3) Copy the contents of the "protected" field from verified_contents.json into |
-protected.txt. |
+3) Copy the contents of the "protected" field (the one with {"kid": |
+"webstore"}) from verified_contents.json into protected.txt. |
4) Concatenate the "protected" and "payload" fields with a '.' separator. |