Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.16
Description
Multiple plugins use a separate implementation of the javax.net.ssl.X509TrustManager to optionally skip TLS certificate checks (NUTCH-2647).
- protocol-httpclient, protocol-http, and with
NUTCH-2649also protocol-selenium, protocol-interactiveselenium, protocol-htmlunit use identical copies of DummyX509TrustManager
1. there should be a single class implementation either in the plugin lib-http or in the core package org.apache.nutch.net.protocols
2. the DummyX509TrustManager needs a clean up: it still keeps a lot old stuff relating to the sun.net.ssl.X509TrustManager interface - protocol-okhttp includes a minimalistic anonymous class implementing X509TrustManager