This is an automated email from the ASF dual-hosted git repository.
tallison pushed a commit to branch TIKA-3719
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/TIKA-3719 by this push:
new d4a8e6ae6 TIKA-3719 -- add warning if requiring 2 way, but no trust
store has been specified.
d4a8e6ae6 is described below
commit d4a8e6ae6cdcce4f3b8bd6b5b7e791b4a08371bc
Author: tallison <[email protected]>
AuthorDate: Fri Apr 22 13:37:00 2022 -0400
TIKA-3719 -- add warning if requiring 2 way, but no trust store has been
specified.
---
.../src/main/java/org/apache/tika/server/core/TlsConfig.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TlsConfig.java
b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TlsConfig.java
index f2d47e6f4..0a18ff4b3 100644
---
a/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TlsConfig.java
+++
b/tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TlsConfig.java
@@ -128,6 +128,10 @@ public class TlsConfig implements Initializable {
"if there's any trustStore info");
}
}
+ if (!hasTrustStore() && isClientAuthenticationRequired()) {
+ throw new TikaConfigException("requiring client
authentication, but no trust " +
+ "store has been specified?!");
+ }
}
}