Test support with legacy HMAC K files with nsupdate

tsig-keygen generates key files that are different to those that
where generated by dnssec-keygen.  Check that nsupdate can still
read those old format files.

(cherry picked from commit e1fb17e72c)
This commit is contained in:
Mark Andrews
2023-06-19 14:14:39 +10:00
parent 2376abc18e
commit a16e10ad8a
16 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1 @@
legacy-157. IN KEY 0 3 157 mGcDSCx/fF121GOVJlITLg==

View File

@@ -0,0 +1,7 @@
Private-key-format: v1.3
Algorithm: 157 (HMAC_MD5)
Key: mGcDSCx/fF121GOVJlITLg==
Bits: AAA=
Created: 20230619042408
Publish: 20230619042408
Activate: 20230619042408

View File

@@ -0,0 +1 @@
legacy-161. IN KEY 0 3 161 N80fGvcr8JifzRUJ62R4rQ==

View File

@@ -0,0 +1,7 @@
Private-key-format: v1.3
Algorithm: 161 (HMAC_SHA1)
Key: N80fGvcr8JifzRUJ62R4rQ==
Bits: AAA=
Created: 20230619042427
Publish: 20230619042427
Activate: 20230619042427

View File

@@ -0,0 +1 @@
legacy-162. IN KEY 0 3 162 nSIKzFAGS7/tvBs8JteI+Q==

View File

@@ -0,0 +1,7 @@
Private-key-format: v1.3
Algorithm: 162 (HMAC_SHA224)
Key: nSIKzFAGS7/tvBs8JteI+Q==
Bits: AAA=
Created: 20230619042555
Publish: 20230619042555
Activate: 20230619042555

View File

@@ -0,0 +1 @@
legacy-163. IN KEY 0 3 163 CvaupxnDeES3HnlYhTq53w==

View File

@@ -0,0 +1,7 @@
Private-key-format: v1.3
Algorithm: 163 (HMAC_SHA256)
Key: CvaupxnDeES3HnlYhTq53w==
Bits: AAA=
Created: 20230619042525
Publish: 20230619042525
Activate: 20230619042525

View File

@@ -0,0 +1 @@
legacy-164. IN KEY 0 3 164 wDldBJwJrYfPoL1Pj4ucOQ==

View File

@@ -0,0 +1,7 @@
Private-key-format: v1.3
Algorithm: 164 (HMAC_SHA384)
Key: wDldBJwJrYfPoL1Pj4ucOQ==
Bits: AAA=
Created: 20230619042615
Publish: 20230619042615
Activate: 20230619042615

View File

@@ -0,0 +1 @@
legacy-165. IN KEY 0 3 165 OgZrTcEa8P76hVY+xyN7Wg==

View File

@@ -0,0 +1,7 @@
Private-key-format: v1.3
Algorithm: 165 (HMAC_SHA512)
Key: OgZrTcEa8P76hVY+xyN7Wg==
Bits: AAA=
Created: 20230619042627
Publish: 20230619042627
Activate: 20230619042627

View File

@@ -129,6 +129,12 @@ include "sha224.key";
include "sha256.key";
include "sha384.key";
include "sha512.key";
include "legacy157.key";
include "legacy161.key";
include "legacy162.key";
include "legacy163.key";
include "legacy164.key";
include "legacy165.key";
zone "keytests.nil" {
type primary;
@@ -140,6 +146,12 @@ zone "keytests.nil" {
grant sha256-key name sha256.keytests.nil. ANY;
grant sha384-key name sha384.keytests.nil. ANY;
grant sha512-key name sha512.keytests.nil. ANY;
grant legacy-157 name 157.keytests.nil. ANY;
grant legacy-161 name 161.keytests.nil. ANY;
grant legacy-162 name 162.keytests.nil. ANY;
grant legacy-163 name 163.keytests.nil. ANY;
grant legacy-164 name 164.keytests.nil. ANY;
grant legacy-165 name 165.keytests.nil. ANY;
};
};