diff --git a/base/java-tools/src/com/netscape/cmstools/HttpClient.java b/base/java-tools/src/com/netscape/cmstools/HttpClient.java index 28934ab553a..eb21e760752 100644 --- a/base/java-tools/src/com/netscape/cmstools/HttpClient.java +++ b/base/java-tools/src/com/netscape/cmstools/HttpClient.java @@ -143,16 +143,17 @@ public void send(String ifilename, String ofilename, String tokenName, String db certname.append(":"); } certname.append(nickname); - + System.out.println("Certificate Nickname:" + " " + certname); + String certnick = certname.toString(); X509Certificate cert = - cm.findCertByNickname(certname.toString()); + cm.findCertByNickname(certnick); if (cert == null) System.out.println("client cert is null"); else System.out.println("client cert is not null"); sslSocket.setUseClientMode(true); - sslSocket.setClientCertNickname(nickname); + sslSocket.setClientCertNickname(certnick); } sslSocket.forceHandshake();