Table Of Contents
Keychain Management Commands on Cisco IOS XRSoftware
accept-lifetime
accept-tolerance
cryptographic-algorithm
key (keychain)
key chain (key chain)
key-string (keychain)
send-lifetime
show key chain
Keychain Management Commands on Cisco IOS XRSoftware
This module describes the Cisco IOS XR software commands used to configure keychain management.
For detailed information about keychain management concepts, configuration tasks, and examples, see the Implementing Keychain Management on Cisco IOS XR Software configuration module.
accept-lifetime
To set the time period during which the authentication key on a keychain is received as valid, use the accept-lifetime command in key configuration mode. To revert to the default value, use the no form of this command
accept-lifetime start-time [duration duration value | infinite | end-time]
no accept-lifetime start-time [duration duration value | infinite | end-time]
Syntax Description
start-time
|
Start time, in hh:mm:ss day month year format, in which the key becomes valid. The range is from 0:0:0 to 23:59:59.
|
duration duration value
|
Determines the lifetime of the key in seconds. The range is from 1-2147483646.
|
infinite
|
Specifies that the key never expires after it becomes valid.
|
end-time
|
End time, in hh:mm:ss day month year format, after which the key expires. The range is from 0:0:0 to 23:59:59.
|
Defaults
No default behavior or values
Command Modes
Key configuration
Command History
Release
|
Modification
|
Release 3.3.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Release 3.4.0
|
No modification.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows how to use the accept-lifetime command:
RR/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)# key 8
RP/0/RP0/CPU0:router(config-isis-keys-0x8)# accept-lifetime 1:00:00 June 29 2006 infinite
Related Commands
accept-tolerance
To specify the tolerance or acceptance limit, in seconds, for an accept key that is used by a peer, use the accept-tolerance command in keychain configuration mode. To disable this feature, use the no form of this command.
accept-tolerance [value | infinite]
no accept-tolerance [value | infinite]
Syntax Description
value
|
(Optional) Tolerance range, in seconds. The range is from 1 to 8640000.
|
infinite
|
(Optional) Specifies that the tolerance specification is infinite. The accept key never expires. The tolerance limit of infinite indicates that an accept key is always acceptable and validated when used by a peer.
|
Defaults
The default value is 0, which is no tolerance.
Command Modes
Keychain configuration
Command History
Release
|
Modification
|
Release 3.4.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
If you do not configure the accept-tolerance command, the tolerance value is set to zero.
Even though the key is outside the active lifetime, the key is deemed acceptable as long as it is within the tolerance limit (for example, either prior to the start of the lifetime, or after the end of the lifetime).
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows how to use the accept-tolerance command:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)# accept-tolerance infinite
Related Commands
cryptographic-algorithm
To specify the choice of the cryptographic algorithm to be applied to the packets using the key string configured for the key ID, use the cryptographic-algorithm command in keychain-key configuration mode. To disable this feature, use the no form of this command.
cryptographic-algorithm [HMAC-MD5 | HMAC-SHA1-12 | HMAC-SHA1-20 | MD5 | SHA-1]
no cryptographic-algorithm [HMAC-MD5 | HMAC-SHA1-12 | HMAC-SHA1-20 | MD5 |
SHA-1]
Syntax Description
HMAC-MD5
|
Configures HMAC-MD5 as a cryptographic algorithm with a digest size of 16 bytes.
|
HMAC-SHA1-12
|
Configures HMAC-SHA1-12 as a cryptographic algorithm with a digest size of 12 bytes.
|
HMAC-SHA1-20
|
Configures HMAC-SHA1-20 as a cryptographic algorithm with a digest size of 20 bytes.
|
MD5
|
Configures MD5 as a cryptographic algorithm with a digest size of 16 bytes.
|
SHA-1
|
Configures SHA-1-20 as a cryptographic algorithm with a digest size of 20 bytes.
|
Defaults
No default behavior or values
Command Modes
Keychain-key configuration
Command History
Release
|
Modification
|
Release 3.4.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
If you do not specify the cryptographic algorithm, MAC computation and API verification would be invalid.
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows how to use the cryptographic-algorithm command:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)# key 8
RP/0/RP0/CPU0:router(config-isis-keys-0x8)# cryptographic-algorithm MD5
Related Commands
key (keychain)
To create or modify a keychain key, use the key command in keychain-key configuration mode. To disable this feature, use the no form of this command.
key key-id
no key key-id
Syntax Description
key-id
|
Key identifier. The range is from 0 to 2147483647.
|
Defaults
No default behavior or values
Command Modes
Keychain-key configuration
Command History
Release
|
Modification
|
Release 3.3.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Release 3.4.0
|
No modification.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows how to use the key command:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)# key 8
RP/0/RP0/CPU0:router(config-isis-keys-0x8)#
Related Commands
key chain (key chain)
To create or modify a keychain, use the key chain command in global configuration mode. To disable this feature, use the no form of this command.
key chain key-chain-name
no key chain key-chain-name
Syntax Description
key-chain-name
|
Specifies the name of the keychain. The maximum number of characters is 48.
|
Defaults
No default behavior or values
Command Modes
Global configuration
Command History
Release
|
Modification
|
Release 3.3.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Release 3.4.0
|
No modification.
|
Release 3.4.1
|
The maximum number of characters allowed in the keychain name was changed from 32 to 48.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
You can configure a keychain for Border Gateway Protocol (BGP) as a neighbor, session-group, or neighbor-group. BGP can use the keychain to implement a hitless key rollover for authentication.
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows that the name of the keychain isis-keys is for the key chain command:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)#
Related Commands
key-string (keychain)
To specify the text string for the key, use the key-string command in keychain-key configuration mode. To disable this feature, use the no form of this command.
key-string [clear | password] key-string-text
no key-string [clear | password] key-string-text
Syntax Description
clear
|
Specifies the key string in clear text form.
|
password
|
Specifies the key in encrypted form.
|
key-string-text
|
Text string for the key and is encrypted by the parser process before it is saved to the configuration.
|
Defaults
The default value is clear.
Command Modes
Keychain-key configuration
Command History
Release
|
Modification
|
Release 3.3.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Release 3.4.0
|
No modification.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows how to use the key-string command:
RP/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:myhost(config-isis-keys)# key 8
RP/0/RP0/CPU0:myhost(config-isis-keys-0x8)# key-string password 8
Related Commands
send-lifetime
To send the valid key and to authenticate information from the local host to the peer, use the send-lifetime command in keychain-key configuration mode. To disable this feature, use the no form of this command.
send-lifetime start-time [duration duration value | infinite | end-time]
no send-lifetime start-time [duration duration value | infinite | end-time]
Syntax Description
start-time
|
Start time, in hh:mm:ss day month year format, in which the key becomes valid. The range is from 0:0:0 to 23:59:59
|
duration duration value
|
Determines the lifetime of the key in seconds.
|
infinite
|
Specifies that the key never expires once it becomes valid.
|
end-time
|
Start time, in hh:mm:ss day month year format, after which the key expires. The range is from 0:0:0 to 23:59:59
|
Defaults
No default behavior or values
Command Modes
Keychain-key configuration
Command History
Release
|
Modification
|
Release 3.3.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Release 3.4.0
|
No modification.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task ID
|
Operations
|
system
|
read, write
|
Examples
The following example shows how to use the send-lifetime command:
RR/0/RP0/CPU0:router# configure
RP/0/RP0/CPU0:router(config)# key chain isis-keys
RP/0/RP0/CPU0:router(config-isis-keys)# key 8
RP/0/RP0/CPU0:router(config-isis-keys-0x8)# send-lifetime 1:00:00 June 29 2006 infinite
Related Commands
show key chain
To display the keychain, use the show key chain command in EXEC mode.
show key chain key-chain-name
Syntax Description
key-chain-name
|
Names of the keys in the specified keychain. The maximum number of characters is 32.
|
Defaults
No default behavior or values
Command Modes
EXEC
Command History
Release
|
Modification
|
Release 3.3.0
|
This command was introduced on the Cisco CRS-1 and Cisco XR 12000 Series Router.
|
Release 3.4.0
|
No modification.
|
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. For detailed information about user groups and task IDs, see the Configuring AAA Services on Cisco IOS XR Software module of the Cisco IOS XR System Security Configuration Guide.
Task ID
Task ID
|
Operations
|
system
|
read
|
Examples
When a secure key storage becomes available, it is desirable for keychain management to alternatively prompt you for a master password and display the key label after decryption. The following example displays only the encrypted key label for the show key chain command:
RP/0/RP0/CPU0:router# show key chain isis-keys
accept-tolerance -- infinite
cryptographic-algorithm -- MD5
Send lifetime: 01:00:00, 29 Jun 2006 - Always valid [Valid now]
Accept lifetime: 01:00:00, 29 Jun 2006 - Always valid [Valid now]
Related Commands