summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2014-09-04 18:52:35 -0700
committerAbhishek Koneru <akoneru@redhat.com>2014-09-04 19:01:54 -0700
commit0bcedd2ab1b1c4e7a687ed61167bc7e0bfaf764a (patch)
tree28dbd1946b1043006012c986d44895809361a917
parent3a40420a042db5f577a5a17c8a49ccd1d1d73955 (diff)
downloadpki-0bcedd2ab1b1c4e7a687ed61167bc7e0bfaf764a.tar.gz
pki-0bcedd2ab1b1c4e7a687ed61167bc7e0bfaf764a.tar.xz
pki-0bcedd2ab1b1c4e7a687ed61167bc7e0bfaf764a.zip
Fix public key print format in KeyCLI.
-rw-r--r--base/java-tools/src/com/netscape/cmstools/key/KeyCLI.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/key/KeyCLI.java b/base/java-tools/src/com/netscape/cmstools/key/KeyCLI.java
index 12bb1808a..e9790b985 100644
--- a/base/java-tools/src/com/netscape/cmstools/key/KeyCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/key/KeyCLI.java
@@ -99,11 +99,7 @@ public class KeyCLI extends CLI {
// where the max line length is 64.
System.out.println(" Public Key: \n");
String publicKey = Utils.base64encode(info.getPublicKey());
- int i = 0;
- for(i=0;i<publicKey.length()/64;i++){
- System.out.println(publicKey.substring(i*64, i*64 + 64));
- }
- System.out.println(publicKey.substring(i*64));
+ System.out.println(publicKey);
System.out.println();
}
}