>From 158e6bd39b1f6057ae51d1d12306bc497e84344e Mon Sep 17 00:00:00 2001
From: Abhishek Koneru <akoneru@redhat.com>
Date: Tue, 5 Jun 2012 15:14:04 -0400
Subject: [PATCH] Minor Fix In a CertificateInfo class

---
 base/common/src/com/netscape/cmscore/security/CertificateInfo.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/common/src/com/netscape/cmscore/security/CertificateInfo.java b/base/common/src/com/netscape/cmscore/security/CertificateInfo.java
index fef733a11ae7eb279fdb50bc00b715bed767b027..c4d776934d0083645ac3deb25f541d6f0463fe35 100755
--- a/base/common/src/com/netscape/cmscore/security/CertificateInfo.java
+++ b/base/common/src/com/netscape/cmscore/security/CertificateInfo.java
@@ -190,7 +190,7 @@ public abstract class CertificateInfo {
                 String key = getKeyAlgorithm();
                 algm = KeyCertUtil.getSigningAlgorithm(key, hashtype);
                 if (algm == null) {
-                    throw new NoSuchAlgorithmException("No Algorithm for Key : " + key + " and Hashtype : " + hashtype);
+                    throw new NoSuchAlgorithmException("Key : " + key + "/ Hashtype : " + hashtype);
                 }
                 mProperties.put(Constants.PR_SIGNATURE_ALGORITHM, algm);
             }
@@ -212,7 +212,7 @@ public abstract class CertificateInfo {
         } catch (IOException e) {
             throw new EBaseException(CMS.getUserMessage("CMS_BASE_INVALID_CERT", e.toString()));
         } catch (NoSuchAlgorithmException e) {
-            throw new EBaseException(CMS.getUserMessage("CMS_BASE_ALG_NOT_SUPPORTED", e.toString()));
+            throw new EBaseException(CMS.getUserMessage("CMS_BASE_ALG_NOT_SUPPORTED", e.getMessage()));
         }
 
         return certInfo;
-- 
1.7.10.2

