From d9a9e23aae83f1d3d6c0e5968097fde12cfff3d2 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 30 Oct 2012 18:12:31 -0500 Subject: 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 --- base/util/src/netscape/security/util/CertPrettyPrint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base') 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"); -- cgit