2014-02-08 00:41:03 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Commands: Keygen"
|
|
|
|
sidebar_current: "docs-commands-keygen"
|
|
|
|
---
|
|
|
|
|
2014-02-19 01:32:13 +00:00
|
|
|
# Consul Keygen
|
2014-02-08 00:41:03 +00:00
|
|
|
|
2014-02-19 01:32:13 +00:00
|
|
|
Command: `consul keygen`
|
2014-02-08 00:41:03 +00:00
|
|
|
|
2014-02-19 01:32:13 +00:00
|
|
|
The `consul keygen` command generates an encryption key that can be used for
|
|
|
|
[Consul agent traffic encryption](/docs/agent/encryption.html).
|
2014-02-08 00:41:03 +00:00
|
|
|
The keygen command uses a cryptographically
|
|
|
|
strong pseudo-random number generator to generate the key.
|