Addec multiple channel private key support to Irssi SILC client.
[silc.git] / apps / irssi / docs / help / in / key.in
1
2 @SYNTAX:key@
3
4 This command is used to set and unset private keys for
5 channels, set and unset private keys for private messages
6 with remote clients and to send key agreement requests and
7 negotiate the key agreement protocol with remote client.
8 The key agreement is supported only to negotiate private
9 message keys, it currently cannot be used to negotiate
10 private keys for channels, as it is not convenient for that
11 purpose.
12
13 Types:
14
15   MSG        The command is performed for private messages
16              affecting the <nickname>.
17
18   CHANNEL    The command is performed for the channel indicated
19              by <channel> (* matches current channel).
20
21 Commands:
22
23   set        [<key> [<cipher>] [<hmac>]]
24
25     Set the key into use.  If the <key> is provided it is used
26     as the key material.  If the <key> is not provided the
27     negotiated key material is used.  If the negotiation has not
28     been performed this command has no effect.
29
30     If the type is MSG and the <key> is `*' then random key
31     will be generated automatically.  The <cipher> may be set
32     for both private message and channel private keys and the
33     <hmac> may be set only to the channel private keys.
34
35   unset      [<number>]
36
37     Unset the key.  The private key is not used after this
38     command.  The key must be set again or the key material must
39     be re-negotiated to be able to use the private keys again.
40     The channel may have several private keys set.  The <number>
41     can be used to indicate what key is being unset.  If it is
42     not provided all keys are removed.
43
44   list
45
46     List all private keys that has been set.  If the type is
47     MSG and the <nickname> is ยด*' then all private message
48     keys that you've set will be listed.
49
50   change     [<number>]
51
52     This command can be used only when type is CHANNEL.  This is
53     used to change the current channel private key.  The <number>
54     may indicate what key is changed.  If it is not provided then
55     next key is changed to current channel private key.  By default
56     this command is also bound to Meta-K (Alt+Shift+k) key.
57
58   agreement  [<hostname> [<port>]]
59
60     Send key agreement request to remote client.  If the
61     <hostname> is provided it is sent in the request. The
62     receiver may use the hostname to start the key agreement.
63     If the <port> is also provided your key agreement protocol
64     server is bound to that port.  Note that it cannot be
65     privileged port (<1024).  If the <hostname> and <port> is
66     not provided then the receiver will never initiate the key
67     agreement.  In this case you may start the key agreement
68     after receiving the reply to the request, by giving the
69     negotiate command.
70
71     This command may be used to send reply to the remote client.
72     When receiving empty key agreement you can reply to the
73     sender with the hostname and port of your key agreement
74     server with this command.
75
76     If the hostname and port are ommitted, the irssi boolean
77     variable use_auto_addr will be examined.  If it is set
78     the value of auto_bind_ip will be used as the IP address
79     to listen for the return reply, the value of auto_public_ip
80     will be the IP address sent to the remote client, and the
81     auto_bind_port will be the port value to be bound to and
82     sent to the remote client.  If auto_public_ip is unset, but
83     auto_bind_ip is set, irssi will send the auto_bind_ip
84     variable's value to the remote client.
85
86   negotiate  [<hostname> [<port>]]
87
88     This may be called to start the key agreement with <nickname>.
89     This command has effect only if the <nickname> has replied to
90     your key agreement request.  You will see a notify on the
91     screen when the reply arrives.  The <hostname> and <port> is the
92     hostname and port of the remote client's key agreement server.
93
94 Examples:
95
96   Set channel private key to current channel, and list all keys:
97
98     /KEY CHANNEL set very_secret_key_this_is
99     /KEY CHANNEL list