- Index
- New and Changed Information
- Preface
- Overview
- Configuring AAA
- Configuring RADIUS
- Configuring TACACS+
- Configuring SSH and Telnet
- Configuring User Accounts and RBAC
- Configuring 802.1X
- Configuring NAC
- Configuring Cisco TrustSec
- Configuring IP ACLs
- Configuring MAC ACLs
- Configuring VLAN ACLs
- Configuring Port Security
- Configuring DHCP Snooping
- Configuring Dynamic ARP Inspection
- Configuring IP Source Guard
- Configuring Keychain Management
- Configuring Traffic Storm Control
- Configuring Unicast RPF
- Configuring Contol Plane Policing
- Configuring Rate Limits
- Information About Keychain Management
- Licensing Requirements for Keychain Management
- Prerequisites for Keychain Management
- Guidelines and Limitations
- Configuring Keychain Management
- Determining Active Key Lifetimes
- Verifying the Keychain Management Configuration
- Example Configuration for Keychain Management
- Where to Go Next
- Default Settings
- Additional References
Configuring Keychain Management
This chapter describes how to configure keychain management on an NX-OS device.
This chapter includes the following sections:
•
Information About Keychain Management
•
Licensing Requirements for Keychain Management
•
Prerequisites for Keychain Management
•
Configuring Keychain Management
•
Determining Active Key Lifetimes
•
Verifying the Keychain Management Configuration
•
Example Configuration for Keychain Management
Information About Keychain Management
This section includes the following topics:
•
Keychains and Keychain Management
Keychains and Keychain Management
Keychain management allows you to create and maintain keychains, which are sequences of keys (sometimes called shared secrets). You can use keychains with features that secure communications with other devices by using key-based authentication. The device allows you to configure multiple keychains.
Some routing protocols that support key-based authentication can use a keychain to implement a hitless key rollover for authentication. For more information, see the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.0.
Lifetime of a Key
To maintain stable communications, each device that uses a protocol that is secured by key-based authentication must be able to store and use more than one key for a feature at the same time. Based on the send and accept lifetimes of a key, keychain management provides a secure mechanism to handle key rollover. The device uses the lifetimes of keys to determine which keys in a keychain are active.
Each key in a keychain has two lifetimes, as follows:
•
Accept lifetime—The time interval within which the device accepts the key during key exchange with another device.
•
Send lifetime—The time interval within which the device sends the key during key exchange with another device.
You define the send and accept lifetimes of a key using the following parameters:
•
Start-time—The absolute time that the lifetime begins.
•
End-time—The end time can be defined in one of the following ways:
–
The absolute time that the lifetime ends
–
The number of seconds after the start time that the lifetime ends
–
Infinite lifetime (no end-time)
During a key send lifetime, the device sends routing update packets with the key. The device does not accept communication from other devices when the key sent is not within the accept lifetime of the key on the device.
We recommend that you configure key lifetimes that overlap within every keychain. This practice avoids failure of neighbor authentication due to the absence of active keys.
Virtualization Support
The following information applies to keychains used in Virtual Device Contexts (VDCs):
•
Keychains are unique per VDC. You cannot use a keychain that you created in one VDC in a different VDC.
•
Because keychains are not shared by VDCs, you can reuse keychain names in different VDCs.
•
The device does not limit keychains on a per-VDC basis.
Licensing Requirements for Keychain Management
The following table shows the licensing requirements for this feature:
Prerequisites for Keychain Management
Keychain management has no prerequisites.
Guidelines and Limitations
Keychain management has the following configuration guideline and limitation:
•
Changing the system clock impacts the when keys are active.
Configuring Keychain Management
This section includes the following topics:
•
Configuring Accept and Send Lifetimes for a Key
Creating a Keychain
You can create a keychain on the device.
BEFORE YOU BEGIN
A new keychain contains no keys. For information about adding a key, see the "Configuring a Key" section.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
config t
2.
key chain name
3.
show key chain name
4.
copy running-config startup-config
DETAILED STEPS
Removing a Keychain
You can remove a keychain on the device.
Note
Removing a keychain removes any keys within the keychain.
BEFORE YOU BEGIN
If you are removing a keychain, ensure that no feature uses it. If a feature is configured to use a keychain that you remove, that feature is likely to fail to communicate with other devices.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
config t
2.
no key chain name
3.
show key chain name
4.
copy running-config startup-config
DETAILED STEPS
Configuring a Key
You can configure a key for a keychain.
A new key contains no text (shared secret). For information about adding text to a key, see the "Configuring Text for a Key" section.
BEFORE YOU BEGIN
Ensure that you are in the correct VDC (or use the switchto vdc command).
The default accept and send lifetimes for a new key are infinite. For more information, see the "Configuring Accept and Send Lifetimes for a Key" section.
SUMMARY STEPS
1.
config t
2.
key chain name
3.
key key-ID
4.
show key chain name
5.
copy running-config startup-config
DETAILED STEPS
Configuring Text for a Key
You can configure the text for a key. The text is the shared secret. The device stores the text in a secure format.
BEFORE YOU BEGIN
Determine the text for the key. You can enter the text as unencrypted text or in the encrypted form that NX-OS uses to display key text when you use the show key chain command. Using the encrypted form is particularly helpful if you are creating key text to match a key as shown in the show key chain command output from another device.
By default, accept and send lifetimes for a key are infinite, which means that the key is always valid. After you configure the text for a key, configure the accept and send lifetimes for the key. For more information, see the "Configuring Accept and Send Lifetimes for a Key" section.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
config t
2.
key chain name
3.
key key-ID
4.
key-string [encryption-type] text-string
5.
show key chain name [mode decrypt]
6.
copy running-config startup-config
DETAILED STEPS
Configuring Accept and Send Lifetimes for a Key
You can configure the accept lifetime and send lifetime for a key.
Note
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.
BEFORE YOU BEGIN
By default, accept and send lifetimes for a key are infinite, which means that the key is always valid.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1.
config t
2.
key chain name
3.
key key-ID
4.
accept-lifetime [local] start-time [duration duration-value | infinite | end-time]
send-lifetime [local] start-time [duration duration-value | infinite | end-time]
5.
show key chain name [mode decrypt]
6.
copy running-config startup-config
DETAILED STEPS
Determining Active Key Lifetimes
To determine which keys within a keychain have active accept or send lifetimes, use the following command:
|
|
|
|---|---|
show key chain |
Displays the keychains configured on the device. |
For detailed information about the fields in the output from this command, see the Cisco Nexus 7000 Series NX-OS Security Command Reference, Release 4.0.
Verifying the Keychain Management Configuration
To display keychain management configuration information, perform one of the following tasks:
|
|
|
|---|---|
show key chain |
Displays the keychains configured on the device. |
For detailed information about the fields in the output from this command, see the Cisco Nexus 7000 Series NX-OS Security Command Reference, Release 4.0.
Example Configuration for Keychain Management
The following example shows how to configure a keychain named glbp keys. Each key text string is encrypted. Each key has longer accept lifetimes than send lifetimes, to help prevent lost communications by accidentally configuring a time in which there are no active keys.
key chain glbp-keys
key 0
key-string 7 zqdest
accept-lifetime 00:00:00 Jun 01 2008 23:59:59 Sep 12 2008
send-lifetime 00:00:00 Jun 01 2008 23:59:59 Aug 12 2008
key 1
key-string 7 uaeqdyito
accept-lifetime 00:00:00 Aug 12 2008 23:59:59 Dec 12 2008
send-lifetime 00:00:00 Sep 12 2008 23:59:59 Nov 12 2008
key 2
key-string 7 eekgsdyd
accept-lifetime 00:00:00 Nov 12 2008 23:59:59 Mar 12 2009
send-lifetime 00:00:00 Dec 12 2008 23:59:59 Feb 12 2009
Where to Go Next
For information about routing features that use keychains, see the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 4.0
Default Settings
Table 17-1 lists the default settings for keychain management parameters.
Additional References
For additional information related to implementing keychain management, see the following sections:
Related Documents
Standards
|
|
|
|---|---|
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature. |
— |
Feedback