Giter Site home page Giter Site logo

jdnssec-tools's People

Contributors

chkal avatar dblacka avatar habbie avatar mind04 avatar pallaviaras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jdnssec-tools's Issues

Exit code 0 when an unhandled exception occurs in jdnssec-verify

Hi,

We are using this in our tests and are using the exit code to see if the jdnssec-verify passed it's test.

Now, when there is an unhandled exception (like this one: #9) then it exits with code 0, so this goes unnoticed for us.

Suggestion is to have a catch all for all exceptions in jdnssec-verify and to exit with non-zero code in that case.

Thanks

jdnssec verify can not handle CAA records

org.xbill.DNS.Tokenizer$TokenizerException: dns.be.zone.forfast.axfr:30: Invalid type 'CAA'
at org.xbill.DNS.Tokenizer.exception(Tokenizer.java:710)
at org.xbill.DNS.Master.parseTTLClassAndType(Master.java:161)
at org.xbill.DNS.Master._nextRecord(Master.java:364)
at org.xbill.DNS.Master.nextRecord(Master.java:388)
at com.verisignlabs.dnssec.security.ZoneUtils.readZoneFile(ZoneUtils.java:74)
at com.verisignlabs.dnssec.cl.VerifyZone.execute(VerifyZone.java:141)
at com.verisignlabs.dnssec.cl.CLBase.run(CLBase.java:336)
at com.verisignlabs.dnssec.cl.VerifyZone.main(VerifyZone.java:164)

version jdnssec-tools-0.14-0

KeyGen writes out DNSKEY to .key files without TTL

The DNSKEYtoString generation which is the string serialization being written into the .key file generated does not include the TTL value of the DNSKEY record type, resulting in errors of missing TTL when using the jdnssec-signkeyset.

Steps to reproduce

$ jdnssec-keygen -a ECDSAP256SHA256 -d . test

results in 

test. IN DNSKEY 256 3 13 2PWH6GR4uKmAffpfg01eAoe13xaEWXGCwPqkv67GDw4XZypwmADMxjN6o20uDyKdbHO0CPuCX6ymmA5zQ+/FXA==

Expected

test. <TTL> IN DNSKEY 256 3 13 2PWH6GR4uKmAffpfg01eAoe13xaEWXGCwPqkv67GDw4XZypwmADMxjN6o20uDyKdbHO0CPuCX6ymmA5zQ+/FXA==

Potential patch

--- a/src/main/java/com/verisignlabs/dnssec/security/BINDKeyUtils.java
+++ b/src/main/java/com/verisignlabs/dnssec/security/BINDKeyUtils.java
@@ -355,6 +355,8 @@ public class BINDKeyUtils
     StringBuffer buf = new StringBuffer();
 
     buf.append(rec.getName());
+    buf.append(" ");
+    buf.append(rec.getTTL());
     buf.append(" IN DNSKEY ");
     buf.append(rec.getFlags() & 0xFFFF);
     buf.append(" ");

bad base64 causes early abort

With reference to tobez/validns#69:

$  jdnssec-verifyzone minimal.com
org.xbill.DNS.Tokenizer$TokenizerException: minimal.com:5: invalid base64 encoding
	at org.xbill.DNS.Tokenizer.exception(Tokenizer.java:710)
	at org.xbill.DNS.Tokenizer.getBase64(Tokenizer.java:617)
	at org.xbill.DNS.Tokenizer.getBase64(Tokenizer.java:631)
	at org.xbill.DNS.SIGBase.rdataFromString(SIGBase.java:80)
	at org.xbill.DNS.Record.fromString(Record.java:472)
	at org.xbill.DNS.Master._nextRecord(Master.java:365)
	at org.xbill.DNS.Master.nextRecord(Master.java:388)
	at com.verisignlabs.dnssec.security.ZoneUtils.readZoneFile(ZoneUtils.java:74)
	at com.verisignlabs.dnssec.cl.VerifyZone.execute(VerifyZone.java:141)
	at com.verisignlabs.dnssec.cl.CLBase.run(CLBase.java:318)
	at com.verisignlabs.dnssec.cl.VerifyZone.main(VerifyZone.java:164)

verifyzone completely bails out on the base64 decoding failure, while it could theoretically still check the rest of the zone file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.