361
key-string
Use
key-string
to configure a key string for a key.
Use
undo key-string
to restore the default.
Syntax
key-string
{
cipher
|
plain
}
string
undo key-string
Default
No key string is configured for a key.
Views
Key view
Predefined user roles
network-admin
mdc-admin
Parameters
cipher
: Specifies a key in encrypted form.
plain
: Specifies a key in plaintext form. For security purposes, the key specified in plaintext form will
be stored in encrypted form.
string
: Specifies the key. Its plaintext form is a case-sensitive string of 1 to 255 characters. Its
encrypted form is a case-sensitive string of 33 o 373 characters.
Usage guidelines
If the length of a plaintext key exceeds the length limit supported by an application, the application
uses the supported length of the key to authenticate packets.
Examples
# Set the key string to
123456
in plaintext form for key 1.
<Sysname> system-view
[Sysname] keychain abc mode absolute
[Sysname-keychain-abc] key 1
[Sysname-keychain-abc-key-1] key-string plain 123456
send-lifetime utc
Use
send-lifetime utc
to set the sending lifetime for a key of a keychain in absolute time mode.
Use
undo send-lifetime
to restore the default.
Syntax
send-lifetime utc start-time start-date
{
duration
{
duration-value
|
infinite
}
|
to end-time
end-date
}
undo send-lifetime
Default
The sending lifetime is not configured for a key of a keychain.
Views
Key view