dnskey.py RRSIG unexpected opening parenthesis
The file https://gitlab.labs.nic.cz/labs/ietf/blob/476d6ded82bad9a3ab0735f740c947adef383844/dnskey.py produces RRSIG with unexpected opening parenthesis.
Current (Wrong), e.g.:
example.com. 3600 IN RRSIG MX 16 2 3600 (
1440021600 1438207200 38353 example.com. (
E1/oLjSGIbmLny/4fcgM1z4oL6aqo+izT3urCyHyvEp4Sp8Syg1eI+lJ57C
SnZqjJP41O/9l4m0AsQ4f7qI1gVnML8vWWiyW2KXhT9kuAICUSxv5OWbf81
Rq7Yu60npabODB0QFPb/rkW3kUZmQ0YQUA )
The unexpected opening parenthesis after example.com. on the second line is wrong, I believe.
I think this resolves it:
--- dnskey.py 2017-03-28 17:01:31.000000000 +0200
+++ dnskey.py.new 2017-03-28 17:00:37.000000000 +0200
@@ -130,7 +130,7 @@
print("%s %s %s %s %s %s" % (owner, ttl, "IN", rtype, mx_priority, mx_target))
print("")
print("%s %s %s %s %s %s %s %s (" % (owner, ttl, "IN", "RRSIG", rtype, tbd[algo], labels(owner), ttl))
- print("%s %s %s %s %s (" % ("".ljust(len(owner)), expiration, inception, key_tag, origin))
+ print("%s %s %s %s %s" % ("".ljust(len(owner)), expiration, inception, key_tag, origin))
print_wrap(signature64, len(owner)+1, 72, " )")
print(" ]]></artwork>")
print(" </figure>")
If you agree, then you should also update the errata for RFC 8080 (https://www.rfc-editor.org/errata_search.php?rfc=8080) because that's how I came here :-)