From f09eeaffaa51f4f26fa69569a9a811e8e1b21702 Mon Sep 17 00:00:00 2001 From: David Blacka Date: Sun, 8 Feb 2009 17:34:05 +0000 Subject: [PATCH] Make using the RSA large exponent the default (like BIND); print the name of the keyfile base at the end (unless the user dictated the filename) (also like BIND) git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@140 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e --- src/com/verisignlabs/dnssec/cl/KeyGen.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/verisignlabs/dnssec/cl/KeyGen.java b/src/com/verisignlabs/dnssec/cl/KeyGen.java index 026eed1..727ebaf 100644 --- a/src/com/verisignlabs/dnssec/cl/KeyGen.java +++ b/src/com/verisignlabs/dnssec/cl/KeyGen.java @@ -54,7 +54,7 @@ public class KeyGen private Options opts; public int algorithm = 5; public int keylength = 1024; - public boolean useLargeE = false; + public boolean useLargeE = true; public String outputfile = null; public File keydir = null; public boolean zoneKey = true; @@ -80,7 +80,8 @@ public class KeyGen opts.addOption("h", "help", false, "Print this message."); opts.addOption("k", "kskflag", false, "Key is a key-signing-key (sets the SEP flag)."); - opts.addOption("e", "large-exponent", false, "Use large RSA exponent"); + opts.addOption("e", "large-exponent", false, "Use large RSA exponent (default)"); + opts.addOption("E", "small-exponent", false, "Use small RSA exponent"); // Argument options OptionBuilder.hasArg(); @@ -313,6 +314,7 @@ public class KeyGen else { BINDKeyUtils.writeKeyFiles(pair, state.keydir); + System.out.println(BINDKeyUtils.keyFileBase(pair)); } }