mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-18 18:25:10 -05:00
48 lines
1.8 KiB
Groff
48 lines
1.8 KiB
Groff
# Test with algorithm
|
|
file-algorithm sha224
|
|
|
|
tsig-key:
|
|
name: "test.key"
|
|
algorithm: sha224
|
|
secret: "K2tf3TRjvQkVCmJF3/Z9vA=="
|
|
|
|
packet
|
|
# www.example.net. IN TXT
|
|
3a03010000010000000000000377777707657861
|
|
6d706c65036e65740000100001
|
|
endpacket
|
|
|
|
# sign the query with <key> <timepoint> <expected function ret>
|
|
tsig-sign-query test.key 1750411954 1
|
|
|
|
check-packet
|
|
3a030100000100000000000103777777076578616d706c65036e657400001000010474657374036b65790000fa00ff0000000000390b686d61632d73686132323400000068552ab2012c001c104d12e4ccab950cb7690233661549b027567ea0c8beb868a7c1c4f33a0300000000
|
|
endpacket
|
|
|
|
# www.example.net A
|
|
packet
|
|
7e7e0000000100000000000103777777076578616d706c65036e657400000100010000291000000000000000
|
|
endpacket
|
|
|
|
tsig-sign-query test.key 1750421692 1
|
|
|
|
check-packet
|
|
7e7e0000000100000000000203777777076578616d706c65036e6574000001000100002910000000000000000474657374036b65790000fa00ff0000000000390b686d61632d736861323234000000685550bc012c001c03431f500872691d8780dafe326cdbe56ceaaca1d0ea3e3a262848e77e7e00000000
|
|
endpacket
|
|
|
|
tsig-verify-query test.key 1750421692 NOERROR NOERROR 0
|
|
|
|
packet
|
|
7e7e0000000100000000000203777777076578616d706c65036e6574000001000100002910000000000000000474657374036b65790000fa00ff0000000000390b686d61632d736861323234000000685550bc012c001c03431f500872691d8780dafe326cdbe56ceaaca1d0ea3e3a262848e77e7e00000000
|
|
endpacket
|
|
|
|
tsig-sign-reply 1750421692 NOERROR 1
|
|
7e7e840000010001000000010377777707657861
|
|
6d706c65036e65740000010001c00c0001000100
|
|
000e1000040a141e2800002904d0000000000000
|
|
endpacket
|
|
|
|
# reply for www.example.net A
|
|
check-packet
|
|
7e7e8400000100010000000203777777076578616d706c65036e65740000010001c00c0001000100000e1000040a141e2800002904d00000000000000474657374036b65790000fa00ff0000000000390b686d61632d736861323234000000685550bc012c001c0fa7ddec264122b5e0c3d1a64ed043c3d68582f0ae2ba2d5b3e186127e7e00000000
|
|
endpacket
|