Skip to content

Commit 9310227

Browse files
committed
Staker file generation using openssl
1 parent e2335f8 commit 9310227

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/run-node/4-register-validator.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ This poses a risk of staked funds being locked against the unrecoverable NodeID
146146

147147
## Run the node
148148

149+
Create `staker.key` and `staker.crt` files using
150+
151+
```bash
152+
openssl req -x509 -newkey rsa:4096 -keyout staker.key -out staker.crt -days 36500 -nodes -subj '/CN=localhost'
153+
```
154+
155+
You will also need the `signer.key` file which is auto-generated and, by default, found in '~/.avalanchego/staking/' folder.
156+
Note that `staker.key` and `staker.crt` are also auto-generated and stored in the same folder, but you must
157+
**not** use them for successful validator registration!
158+
149159
Now, start your node using command-line flags or environment variables that point to your `staker.key`, `staker.crt` and `signer.key` files.
150160
This ensures your node always starts with the correct `Node-ID`.
151161

0 commit comments

Comments
 (0)