You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect{subject.register}.toraise_error(LogStash::ConfigurationError,"The configuration of `ssl_truststore_path` requires setting `ssl_client_authentication` to `optional` or 'required'")
expect{subject.register}.toraise_error(LogStash::ConfigurationError,"The provided Trust Store file does not contains any trusted certificate entry: #{truststore_path}")
Copy file name to clipboardExpand all lines: src/main/java/org/logstash/plugins/inputs/http/util/SslSimpleBuilder.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -188,8 +188,8 @@ public SslSimpleBuilder setTrustStore(String trustStoreType, String trustStoreFi
188
188
formatJksPassword(trustStorePassword)
189
189
);
190
190
191
-
if (!hasTrustStoreEntry(this.trustStore)) {
192
-
logger.warn("The provided Trust Store file does not contains any trusted certificate entry: {}. Please confirm this is the correct certificate and the password is correct", trustStoreFile);
191
+
if (!hasTrustStoreEntry(this.trustStore) && isClientAuthenticationRequired()) {
192
+
thrownewIllegalArgumentException(String.format("The provided Trust Store file does not contains any trusted certificate entry: %s", trustStoreFile));
0 commit comments