Lewis John McGibbney created NUTCH-1929:
-------------------------------------------
Summary: Consider implementing dependency injection for crawl
HTTPS sites that use self signed certificates
Key: NUTCH-1929
URL: https://issues.apache.org/jira/browse/NUTCH-1929
Project: Nutch
Issue Type: Improvement
Reporter: Lewis John McGibbney
Assignee: Lewis John McGibbney
Fix For: 2.4, 1.11
It was mentioned [a while
ago|http://www.mail-archive.com/[email protected]/msg11416.html] that "to
be able to crawl sites with a self signed certificate required a simple code
modification the protocol-httpclient plugin."
{code}
in org.apache.nutch.protocol.httpclient.Http
Replace:
ProtocolSocketFactory factory = new SSLProtocolSocketFactory();
With:
ProtocolSocketFactory factory = new DummySSLProtocolSocketFactory();
{code}
I can confirm that this patch actually fixes the issue, however the thread
hangs on a question which was never answered.
"Is there dependency injection that can be used?"
This issue needs to investigate the required logic which we can implement to
make the decision at runtime.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)