2014-02-08 00:41:03 +00:00
|
|
|
---
|
2020-04-07 18:55:19 +00:00
|
|
|
layout: docs
|
2020-04-06 20:27:35 +00:00
|
|
|
page_title: 'Commands: Keygen'
|
2020-04-07 18:55:19 +00:00
|
|
|
sidebar_current: docs-commands-keygen
|
|
|
|
description: >-
|
|
|
|
The `keygen` command generates an encryption key that can be used for Consul
|
|
|
|
agent traffic encryption. The keygen command uses a cryptographically strong
|
|
|
|
pseudo-random number generator to generate the key.
|
2014-02-08 00:41:03 +00:00
|
|
|
---
|
|
|
|
|
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-10-19 23:40:10 +00:00
|
|
|
The `keygen` command generates an encryption key that can be used for
|
2014-02-19 01:32:13 +00:00
|
|
|
[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.
|