Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Unified Diff: extensions/test/data/content_verifier/README

Issue 273093002: Minor fix to README and test data file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/test/data/content_verifier/verified_contents.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/test/data/content_verifier/README
diff --git a/extensions/test/data/content_verifier/README b/extensions/test/data/content_verifier/README
index b950a2173a8751071770e457dc39a1e32f39af04..8379a83c6f325fdffc58f7a60284c417ccdce5ba 100644
--- a/extensions/test/data/content_verifier/README
+++ b/extensions/test/data/content_verifier/README
@@ -8,7 +8,7 @@ openssl rsa -in private_key.pem -pubout -out public_key.pem
The signature was generated by:
1) Take the contents of payload.json and base64url encode them:
-cat payload.json | tr -d \\n | base64 -w0 | tr _ / | tr \- + | tr -d '=' > payload_encoded.txt
+cat payload.json | tr -d \\n | base64 -w0 | tr / _ | tr + \- | tr -d '=' > payload_encoded.txt
2) Put the contents of payload_encoded.txt into the "payload" field of
verified_contents.json.
@@ -22,7 +22,7 @@ echo -n '.' | cat protected.txt - payload_encoded.txt > signature_input.txt
5) Sign it
-tr -d \\n < signature_input.txt | openssl dgst -sha256 -sign private_key.pem -binary | base64 -w0 | tr _ / | tr \- + | tr -d '=' > signature.txt
+tr -d \\n < signature_input.txt | openssl dgst -sha256 -sign private_key.pem -binary | base64 -w0 | tr / _ | tr + \- | tr -d '=' > signature.txt
6) Put the contents of signature.txt into the "signature" field in
verified_contents.json.
« no previous file with comments | « no previous file | extensions/test/data/content_verifier/verified_contents.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698