360
Parameters
key-id
: Specifies a key ID in the range of 0 to 281474976710655.
Usage guidelines
The keys in a keychain must have different key IDs.
Examples
# Create key 1 and enter its view.
<Sysname> system-view
[Sysname] keychain abc mode absolute
[Sysname-keychain-abc] key 1
[Sysname-keychain-abc-key-1]
keychain
Use
keychain
to create a keychain and enter its view, or enter the view of an existing keychain.
Use
undo keychain
to delete a keychain and all its configurations.
Syntax
keychain keychain-name
[
mode
absolute
]
undo keychain keychain-name
Default
No keychains exist.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
keychain-name
: Specifies a keychain name, a case-sensitive string of 1 to 63 characters.
mode
: Specifies a time mode.
absolute
: Specifies the absolute time mode. In this mode, each time point during a key's lifetime is
the UTC time and is not affected by the system's time zone or daylight saving time.
Usage guidelines
You must specify the time mode when you create a keychain. You cannot change the time mode for
an existing keychain.
The time mode is not required when you enter the view of an existing keychain.
Examples
# Create keychain
abc
, specify the absolute time mode for it, and enter keychain view.
<Sysname> system-view
[Sysname] keychain abc mode absolute
[Sysname-keychain-abc]