blob: 741561757cdf5d546d5716deed824331ce9700b0 [file] [log] [blame]
.TH encode_keychange 1 "16 Nov 2006" VVERSIONINFO "Net-SNMP"
encode_keychange - produce the KeyChange string for SNMPv3
.B encode_keychange
-t md5|sha1
.B encode_keychange
produces a KeyChange string using the old and new passphrases
as described in Section 5 of RFC 2274 "User-based Security Model (USM) for
version 3 of the Simple Network Management Protocol (SNMPv3)". \fB-t\fR
option is mandatory and specifies the hash transform type to use.
The transform is used to convert passphrase to master key for a given
user (Ku), convert master key to the localized key (Kul), and to hash the
old Kul with the random bits.
Passphrases are obtained by examining a number of sources until success
(in order listed):
command line options (see
.B -N
.B -O
options below);
the file
.B $HOME/.snmp/passphrase.ek
which should only contain two lines with old and new passphrase;
standard input \fB\-or\-\fR user input from the terminal.
\fB\-E\fR [0x]<\fIengineID\fR> EngineID used for Kul generation.
<\fIengineID\fR> is intepreted as a hex string when preceeded by 0x,
otherwise it is treated as a text string. If no <\fIengineID\fR> is
specified, it is constructed from the first IP address for the local
Force passphrases to be read from standard input.
Display the help message.
\fB\-N\fR "<\fInew_passphrase\fR>"
Passphrase used to generate the new Ku.
\fB\-O\fR "<\fIold_passphrase\fR>"
Passphrase used to generate the old Ku.
Turn off the prompt for passphrases when getting data from standard input.
Be verbose.
Echo passphrases to terminal.
The localized key method is defined in RFC 2274, Sections 2.6 and A.2, and
originally documented in
U. Blumenthal, N. C. Hien, B. Wijnen,
"Key Derivation for Network Management Applications",
IEEE Network Magazine, April/May issue, 1997.