This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 dae4d544ce Review "Report a configuration error for PEM certificates
with a ..."
dae4d544ce is described below
commit dae4d544ce6c3fff22d759ed84ccce4ad2de756a
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 3 20:41:15 2026 +0000
Review "Report a configuration error for PEM certificates with a ..."
Better error message
---
java/org/apache/tomcat/util/net/LocalStrings.properties | 1 +
java/org/apache/tomcat/util/net/SSLUtilBase.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/net/LocalStrings.properties
b/java/org/apache/tomcat/util/net/LocalStrings.properties
index 6f8f3190f2..c0f83c0e9e 100644
--- a/java/org/apache/tomcat/util/net/LocalStrings.properties
+++ b/java/org/apache/tomcat/util/net/LocalStrings.properties
@@ -201,6 +201,7 @@ sslImplementation.cnfe=Unable to create SSLImplementation
for class [{0}]
sslUtilBase.active=The [{0}] that are active are : [{1}]
sslUtilBase.aliasIgnored=FIPS enabled so alias name [{0}] will be ignored. If
there is more than one key in the key store, the key used will depend on the
key store implementation
sslUtilBase.alias_no_key_entry=Alias name [{0}] does not identify a key entry
+sslUtilBase.fipsNoCertFile=FIPS enabled. Configure the certificate using a key
store.
sslUtilBase.fipsPemNotSupported=FIPS enabled so PEM format certificate files
are not supported. Configure the certificate using a key store rather than the
certificateFile attribute
sslUtilBase.invalidTrustManagerClassName=The trustManagerClassName provided
[{0}] does not implement javax.net.ssl.TrustManager
sslUtilBase.keystore_load_failed=Failed to load keystore type [{0}] with path
[{1}] due to [{2}]
diff --git a/java/org/apache/tomcat/util/net/SSLUtilBase.java
b/java/org/apache/tomcat/util/net/SSLUtilBase.java
index b88da6ffa0..f4ea8ba56f 100644
--- a/java/org/apache/tomcat/util/net/SSLUtilBase.java
+++ b/java/org/apache/tomcat/util/net/SSLUtilBase.java
@@ -356,7 +356,7 @@ public abstract class SSLUtilBase implements SSLUtil {
}
if (ks == null) {
if (certificate.getCertificateFile() == null) {
- throw new
IOException(sm.getString("sslUtilBase.noCertFile"));
+ throw new
IOException(sm.getString("sslUtilBase.fipsNoCertFile"));
}
// Importing PEM format certificates into an in memory key
store
// requires the key manipulation that is avoided above.
Passing a
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]