2014-02-07 16:41:03 -08:00
|
|
|
---
|
2020-04-07 14:55:19 -04:00
|
|
|
layout: docs
|
2020-04-06 16:27:35 -04:00
|
|
|
page_title: 'Commands: Keygen'
|
2020-04-13 14:40:26 -04:00
|
|
|
sidebar_title: keygen
|
2020-04-07 14:55:19 -04:00
|
|
|
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-07 16:41:03 -08:00
|
|
|
---
|
|
|
|
|
2014-02-18 17:32:13 -08:00
|
|
|
# Consul Keygen
|
2014-02-07 16:41:03 -08:00
|
|
|
|
2014-02-18 17:32:13 -08:00
|
|
|
Command: `consul keygen`
|
2014-02-07 16:41:03 -08:00
|
|
|
|
2014-10-19 19:40:10 -04:00
|
|
|
The `keygen` command generates an encryption key that can be used for
|
2020-04-09 19:46:54 -04:00
|
|
|
[Consul agent traffic encryption](/docs/agent/encryption).
|
2014-02-07 16:41:03 -08:00
|
|
|
The keygen command uses a cryptographically
|
|
|
|
strong pseudo-random number generator to generate the key.
|