Configure a Key LifetimeNEW!

You can define the time period when a key is active.

  1. Enter global configuration mode.
    device# configure terminal
  2. Enter keychain configuration mode.
    device(config)# keychain keychain1
    This example enters configuration mode for key chain 1.
  3. Enter key configuration mode.
    device(config-keychain1)# key 10
    This example enters configuration mode for key 10 in key chain 1.
  4. Specify the key starting time and day and the ending time and day.
    device(config-keychain1-key10)# accept-lifetime 00:00:00|06/04/2020 23:59:59|12/04/2020
    This example configures a lifetime from June 6 2020 to December 4 2020 (UTC) for key 10 in key chain 1.

Example

This example configures a lifetime from June 6 2020 to December 4 2020 (local) for key 10 in key chain 1.

device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)# accept-lifetime local true 00:00:00|06/04/2020 23:59:59|12/04/2020 

Example

This example configures a lifetime that never expires for key 10 in key chain 1.

device# configure terminal
device(config)# keychain keychain1
device(config-keychain1)# key 10
device(config-keychain1-key10)# accept-lifetime infinite