Purpose
Command or Action
Enters key configuration mode for the key that you
specified. The
key-ID
argument must be a whole number
between 0 and 65535.
key key-ID
Example:
switch(config-keychain)# key 13
switch(config-keychain-key)#
Step 3
Configures the text string for the key. The
text-string
argument is alphanumeric, case-sensitive, and supports
special characters.
key-string
[
encryption-type
]
text-string
Example:
switch(config-keychain-key)# key-string 0
AS3cureStr1ng
Step 4
The
encryption-type
argument can be one of the following
values:
• 0—The
text-string
argument that you enter is
unencrypted text. This is the default.
• 7—The
text-string
argument that you enter is
encrypted. The encryption method is a Cisco
proprietary method. This option is useful when you
are entering a text string based on the encrypted output
of a
show key chain
command that you ran on another
Cisco NX-OS device.
Shows the keychain configuration, including the key text
configuration. The mode decrypt option, which can be used
(Optional)
show key chain name
[
mode decrypt
]
Example:
Step 5
by a device administrator only, displays the keys in
cleartext.
switch(config-keychain-key)# show key chain
bgp-keys
Copies the running configuration to the startup
configuration.
(Optional)
copy running-config startup-config
Example:
Step 6
switch(config-keychain-key)# copy running-config
startup-config
Related Topics
Configuring a Master Key and Enabling the AES Password Encryption Feature
, on page 414
Configuring Accept and Send Lifetimes for a Key
You can configure the accept lifetime and send lifetime for a key. By default, accept and send lifetimes for a
key are infinite, which means that the key is always valid.
We recommend that you configure the keys in a keychain to have overlapping lifetimes. This practice prevents
loss of key-secured communication due to moments where no key is active.
Note
SUMMARY STEPS
1.
configure terminal
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
425
Configuring Keychain Management
Configuring Accept and Send Lifetimes for a Key