From: Michal 'vorner' Vaner Date: Tue, 25 Sep 2012 12:17:34 +0000 (+0200) Subject: [2189] Document TSIG keyring X-Git-Tag: trac2351_base~37^2~8^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08162d5b7ef6b101030b71ac0553b237a7c64bd9;p=thirdparty%2Fkea.git [2189] Document TSIG keyring --- diff --git a/doc/guide/bind10-guide.xml b/doc/guide/bind10-guide.xml index a95b0f540e..b6ca474879 100644 --- a/doc/guide/bind10-guide.xml +++ b/doc/guide/bind10-guide.xml @@ -1310,6 +1310,89 @@ TODO many modules. So we show them here in one place. +
+ TSIG keys + + + TSIG is a way to sign requests and responses in DNS. It is defined in + RFC 2845 and uses symmetric cryptography to sign the DNS messages. If + you want to make any use of TSIG (to authenticate transfers or DDNS, + for example), you need to set up shared secrets between the endpoints. + + + + BIND 10 uses a global key ring for the secrets. It doesn't currently + mean they would be stored differently, they are just in one place of + the configuration. + + +
+ Key anatomy and syntax + + + Each key has three attributes. One is a name by which it is referred + both in DNS packets and the rest of the configuration. Another is the + algorithm used to compute the signature. And the last part is base64 + encoded secret, which might be any blob of binary data. + + + + The parts are written into a string, concatenated together by colons. + So if you wanted to have a key called "example.key", used as HMAC-MD5 + key with secret "secret", you'd write it as: +"example.key.:c2VjcmV0:hmac-md5". + + + + The HMAC-MD5 algorithm is the default, so you can omit it. You could + write the same key as: +"example.key.:c2VjcmV0" + + + + You can also use these algorithms (which may not be omitted from the + key definition if used): + + hmac-sha1 + hmac-sha224 + hmac-sha256 + hmac-sha384 + hmac-sha512 + + + + + The name of the key must be a valid DNS name. + +
+ +
+ Key ring + + The key ring lives in the configuration in "tsig_keys/keys". Most of + the system uses the keys from there ‒ ACLs, authoritative server to + sign responses to signed queries, the b10-xfrout + to sign transfers. The b10-xfrin uses its own + configuration for keys, but that will be fixed in track ticket + #1351. + + + + The key ring is just a list of strings, each describing one key. So, + to add a new key, you can do this: + > config add tsig_keyring/keys "example.key.:c2VjcmV0" +> config show tsig_keyring/keys +tsig_keys/keys[0] "example.key.:c2VjcmV0" string (modified) +> config commit + + + + You can keep as many keys as you want in the key ring, but they must + have a different name each. + +
+
+
ACLs