Files
nomad/website/content/docs/commands/operator/gossip/keyring-generate.mdx
Aimee Ukasick dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00

37 lines
1.2 KiB
Plaintext

---
layout: docs
page_title: 'nomad operator gossip keyring generate command reference'
description: >
The `nomad operator gossip keyring generate` command generates an encryption key that can be used for
Nomad server's gossip traffic encryption. The keygen command uses a
cryptographically strong pseudo-random number generator to generate the key.
---
# nomad operator gossip keyring generate reference
The `operator gossip keyring generate` command generates an encryption
key that can be used for Nomad server's gossip traffic encryption. The
keygen command uses a cryptographically strong pseudo-random number
generator to generate the key.
The resulting key is encoded in the [RFC4648] "URL and filename safe"
base64 alphabet. If you use another tool such as OpenSSL to generate
the gossip key, you should pipe the input through the `base64(1)`
command to ensure it is safely encoded. For example: `openssl rand 32
| base64`
## Usage
```plaintext
nomad operator gossip keyring generate
```
## Example
```shell-session
$ nomad operator gossip keyring generate
6RhfKFZ5uYEaU6RgWzx69ssLcpiIkvnEZs5KBOQxvxA=
```
[rfc4648]: https://tools.ietf.org/html/rfc4648#section-5