summaryrefslogtreecommitdiffstats
path: root/base/util
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-10-30 18:12:31 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-10-31 09:49:20 -0500
commitd9a9e23aae83f1d3d6c0e5968097fde12cfff3d2 (patch)
tree3e33b80f0d212b2affe1a4693f49b7e89b3fdf03 /base/util
parent8eb2ccf677478176da482d512af32ecadc6f2e8d (diff)
downloadpki-d9a9e23aae83f1d3d6c0e5968097fde12cfff3d2.tar.gz
pki-d9a9e23aae83f1d3d6c0e5968097fde12cfff3d2.tar.xz
pki-d9a9e23aae83f1d3d6c0e5968097fde12cfff3d2.zip
Fixed problem finding SHA-256 message digest.
The CertPrettyPrint has been modified to use the standard names for message digests so that it will work with standard security provider. Ticket #392
Diffstat (limited to 'base/util')
-rw-r--r--base/util/src/netscape/security/util/CertPrettyPrint.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/util/src/netscape/security/util/CertPrettyPrint.java b/base/util/src/netscape/security/util/CertPrettyPrint.java
index 34dda33b6..cb8db8877 100644
--- a/base/util/src/netscape/security/util/CertPrettyPrint.java
+++ b/base/util/src/netscape/security/util/CertPrettyPrint.java
@@ -322,7 +322,7 @@ public class CertPrettyPrint {
sb.append(pp.toHexString(mX509Cert.getSignature(), 16, 16));
// fingerprints
- String[] hashes = new String[] { "MD2", "MD5", "SHA1", "SHA256", "SHA512" };
+ String[] hashes = new String[] { "MD2", "MD5", "SHA-1", "SHA-256", "SHA-512" };
StringBuffer certFingerprints = new StringBuffer();
sb.append(pp.indent(8) + "FingerPrint\n");