This is an automated email from the ASF dual-hosted git repository.
sebastian-nagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push:
new e29a1d46a NUTCH-3221 HTTP protocols to verify TLS/SSL certificates by
default
e29a1d46a is described below
commit e29a1d46a75a929dc2ddf2a6b0c2e31f4a46d201
Author: Sebastian Nagel <[email protected]>
AuthorDate: Wed Oct 21 22:41:31 2026 +0200
NUTCH-3221 HTTP protocols to verify TLS/SSL certificates by default
---
conf/nutch-default.xml | 2 +-
.../src/java/org/apache/nutch/protocol/http/api/HttpBase.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/conf/nutch-default.xml b/conf/nutch-default.xml
index 340cf1b3b..17a0eaf73 100644
--- a/conf/nutch-default.xml
+++ b/conf/nutch-default.xml
@@ -315,7 +315,7 @@
<property>
<name>http.tls.certificates.check</name>
- <value>false</value>
+ <value>true</value>
<description>
Whether to check the TLS/SSL server certificates for validity.
If true invalid (e.g., self-signed or expired) certificates are
diff --git
a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
index 5eb14c17f..a7d5c5614 100755
---
a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
+++
b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
@@ -176,7 +176,7 @@ public abstract class HttpBase implements Protocol {
protected long maxCrawlDelay = -1L;
/** Whether to check TLS/SSL certificates */
- protected boolean tlsCheckCertificate = false;
+ protected boolean tlsCheckCertificate = true;
/** Which TLS/SSL protocols to support */
protected Set<String> tlsPreferredProtocols;
@@ -241,7 +241,7 @@ public abstract class HttpBase implements Protocol {
this.useHttp11 = conf.getBoolean("http.useHttp11", true);
this.useHttp2 = conf.getBoolean("http.useHttp2", false);
this.tlsCheckCertificate = conf.getBoolean("http.tls.certificates.check",
- false);
+ true);
this.responseTime = conf.getBoolean("http.store.responsetime", true);
this.storeIPAddress = conf.getBoolean("store.ip.address", false);
this.storeHttpRequest = conf.getBoolean("store.http.request", false);