Closed oberstet closed 2 years ago
normal node keys are store in CBDIR in files:
key.priv
key.pub
for the node's eth keys we might use file names:
ethkey.priv
ethkey.pub
fixed via 22.4.1. here is an example:
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/crossbar-examples/authentication$ cat wampcra/static/.crossbar/key.pub
Crossbar.io node public key
creator: oberstet@intel-nuci7
created-at: 2022-04-15T05:41:00.456Z
machine-id: 816b4b901e774fc1ad59cbf2719806b7
node-authid: intel-nuci7
node-cluster-ip: 127.0.0.1
public-key-ed25519: c71289fe71920793da6c95086cc71dafd96aeaa171831154f5a5301a6fc20387
(cpy39_1) (base) oberstet@intel-nuci7:~/scm/crossbario/crossbar-examples/authentication$ cat wampcra/static/.crossbar/key.priv
Crossbar.io node private key - KEEP THIS SAFE!
creator: oberstet@intel-nuci7
created-at: 2022-04-15T05:41:00.456Z
machine-id: 816b4b901e774fc1ad59cbf2719806b7
node-authid: intel-nuci7
node-cluster-ip: 127.0.0.1
public-key-ed25519: c71289fe71920793da6c95086cc71dafd96aeaa171831154f5a5301a6fc20387
private-key-ed25519: edbce3af8c8952928d64c6c9658f66e594ec1b13d170071416aee2174ffa0f5c
we have code to generate new node keys:
https://github.com/crossbario/crossbar/blob/master/crossbar/common/key.py
which is used generating node keys using CLI:
which produces (no worries, this is throw-away key material):
in addition to above
each node should have
code already exists in crossbar here:
https://github.com/crossbario/crossbar/blob/ca8d383f01231e2b3f986e791f215f12f2deee5d/crossbar/edge/worker/xbr/_marketmaker.py#L125
however, we should move that code into the general node key setup