You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2015/02/04 01:32:34 UTC
[jira] [Commented] (NUTCH-1929) Consider implementing dependency
injection for crawl HTTPS sites that use self signed certificates
[ https://issues.apache.org/jira/browse/NUTCH-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14304380#comment-14304380 ]
Lewis John McGibbney commented on NUTCH-1929:
---------------------------------------------
This code is required in order for me to use HTTP POST with protocl-httpclient
> 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/user@nutch.apache.org/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)