--- layout: "docs" page_title: "Commands: keygen" sidebar_current: "docs-commands-keygen" description: > The `keygen` 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. --- # Command: `keygen` The `keygen` 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. ## Usage ``` nomad keygen ``` ## Example ``` nomad keygen YgZOXLMhC7TtZqeghMT8+w== ```