Permalink
Browse files

pdnssec -v show-zone: Print all keys

  • Loading branch information...
1 parent eb82e51 commit b8bd119e7e408bb19e909bd256623688db4d7634 @ion1 ion1 committed Jan 30, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/pdnssec.cc
View
@@ -784,9 +784,9 @@ bool showZone(DNSSECKeeper& dk, const std::string& zone)
algorithm2name(value.first.d_algorithm, algname);
cout<<"ID = "<<value.second.id<<" ("<<(value.second.keyOrZone ? "KSK" : "ZSK")<<"), tag = "<<value.first.getDNSKEY().getTag();
cout<<", algo = "<<(int)value.first.d_algorithm<<", bits = "<<value.first.getKey()->getBits()<<"\tActive: "<<value.second.active<< " ( " + algname + " ) "<<endl;
- if(value.second.keyOrZone || ::arg().mustDo("direct-dnskey"))
+ if(value.second.keyOrZone || ::arg().mustDo("direct-dnskey") || g_verbose)
cout<<(value.second.keyOrZone ? "KSK" : "ZSK")<<" DNSKEY = "<<zone<<" IN DNSKEY "<< value.first.getDNSKEY().getZoneRepresentation() << " ; ( " + algname + " )" << endl;
- if(value.second.keyOrZone) {
+ if(value.second.keyOrZone || g_verbose) {
cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 1).getZoneRepresentation() << " ; ( SHA1 digest )" << endl;
cout<<"DS = "<<zone<<" IN DS "<<makeDSFromDNSKey(zone, value.first.getDNSKEY(), 2).getZoneRepresentation() << " ; ( SHA256 digest )" << endl;
try {

0 comments on commit b8bd119

Please sign in to comment.