You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2026/05/15 12:16:44 UTC

(tomcat) branch 9.0.x updated: Fix questionable name

This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 5bb96d315c Fix questionable name
5bb96d315c is described below

commit 5bb96d315cfd214f5492ad9db087a7578799af1b
Author: remm <re...@apache.org>
AuthorDate: Fri May 15 14:14:29 2026 +0200

    Fix questionable name
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 8746597182..eacc2db79c 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -572,9 +572,9 @@ public abstract class AbstractEndpoint<S, U> {
             byte[] certBytes = certificate.getEncoded();
             // SHA-256 fingerprint
             sb.append("\nSHA-256 fingerprint: ");
-            MessageDigest sha512Digest = MessageDigest.getInstance("SHA-256");
-            sha512Digest.update(certBytes);
-            sb.append(HexUtils.toHexString(sha512Digest.digest()));
+            MessageDigest sha256Digest = MessageDigest.getInstance("SHA-256");
+            sha256Digest.update(certBytes);
+            sb.append(HexUtils.toHexString(sha256Digest.digest()));
             // SHA-1 fingerprint
             sb.append("\nSHA-1 fingerprint: ");
             MessageDigest sha1Digest = MessageDigest.getInstance("SHA-1");


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org