github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/operator/gossip/keyring-generate.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: operator gossip keyring generate' 4 description: > 5 The `operator gossip keyring generate` command generates an encryption key that can be used for 6 Nomad server's gossip traffic encryption. The keygen command uses a 7 cryptographically strong pseudo-random number generator to generate the key. 8 --- 9 10 # Command: operator gossip keyring generate 11 12 The `operator gossip keyring generate` command generates an encryption 13 key that can be used for Nomad server's gossip traffic encryption. The 14 keygen command uses a cryptographically strong pseudo-random number 15 generator to generate the key. 16 17 The resulting key is encoded in the [RFC4648] "URL and filename safe" 18 base64 alphabet. If you use another tool such as OpenSSL to generate 19 the gossip key, you should pipe the input through the `base64(1)` 20 command to ensure it is safely encoded. For example: `openssl rand 32 21 | base64` 22 23 ## Usage 24 25 ```plaintext 26 nomad operator gossip keyring generate 27 ``` 28 29 ## Example 30 31 ```shell-session 32 $ nomad operator gossip keyring generate 33 6RhfKFZ5uYEaU6RgWzx69ssLcpiIkvnEZs5KBOQxvxA= 34 ``` 35 36 [rfc4648]: https://tools.ietf.org/html/rfc4648#section-5