summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/common/src/com/netscape/cmscore/security/CertificateInfo.java4
1 files 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 fef733a11..c4d776934 100644
--- 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;