The sa encryption-hex command configures an encryption key for manual Security Association (SA) in hexadecimal format.
The undo sa encryption-hex command deletes an encryption key for manual SA configured in hexadecimal format.
By default, no encryption key is created.
sa encryption-hex { inbound | outbound } esp [ cipher ] { hex-plain-key | hex-cipher-key }
undo sa encryption-hex { inbound | outbound } esp
Parameter | Description | Value |
---|---|---|
inbound | Specifies SA parameters for incoming packets. | - |
outbound | Specifies SA parameters for outgoing packets. | - |
esp | Specifies SA parameters for Encapsulating Security Payload (ESP). If the security proposal applied to an SA uses ESP, esp must be configured in the sa encryption-hex command. | - |
cipher | Indicates the ciphertext used for encryption. | - |
hex-plain-key | Sets the authentication password to be in plaintext format. |
The value is in hexadecimal notation.
|
hex-cipher-key | Sets the authentication password to be in ciphertext format. |
The value is a string of case-insensitive characters,
spaces not supported.
|
# In an IPSec SA, set the encryption key of the inbound SA to 0x1234567890abcdef, and the encryption key of the outbound SA to 0xabcdefabcdef1234. The encryption key is displayed in cipher text.
<HUAWEI> system-view [HUAWEI] ipsec sa sa1 [HUAWEI-ipsec-sa-sa1] sa encryption-hex inbound esp cipher 1234567890abcdef [HUAWEI-ipsec-sa-sa1] sa encryption-hex outbound esp cipher abcdefabcdef1234