Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Commit d2edd4b

Browse files
committed
chore(docs): Add a comment about privKey/pubKey confusion in gen_keys
1 parent 60eb6f1 commit d2edd4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/gen_keys.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function main(cb) {
4141
fs.writeFileSync(keyPath, JSON.stringify(privKey.toJSON(), undefined, 2));
4242
console.log('Key saved:', keyPath); //eslint-disable-line no-console
4343

44+
// The "old key" is not used to sign anything, so we don't need to store
45+
// the private component, we just need to serve the public component
46+
// so that old signatures can be verified correctly.
4447
var pubKey = JwTool.JWK.fromPEM(generateRSAKeypair().public, {
4548
kid: '2015.12.16-2'
4649
});

0 commit comments

Comments
 (0)