[ 
https://issues.apache.org/jira/browse/SLIDER-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15053031#comment-15053031
 ] 

Jonathan Maron commented on SLIDER-907:
---------------------------------------

I think you may be able to add the code that takes advantage of Hadoop SSL 
Client configuration to the SliderURLConnectionFactory.openConnection method:

        if (connection instanceof HttpsURLConnection) {
          log.debug("Attempting to configure HTTPS connection using client "
                    + "configuration");
          final SSLFactory factory;
          final SSLSocketFactory sf;
          final HostnameVerifier hv;

          try {
            HttpsURLConnection c = (HttpsURLConnection) connection;
            factory = new SSLFactory(SSLFactory.Mode.CLIENT, new 
Configuration());
            factory.init();
            sf = factory.createSSLSocketFactory();
            hv = factory.getHostnameVerifier();
            c.setSSLSocketFactory(sf);
            c.setHostnameVerifier(hv);
          } catch (Exception e) {
            log.info("Unable to configure HTTPS connection from "
                     + "configuration.  Using JDK properties.");
          }

        }


> AgentWebPagesIT#testAgentWeb fails on wire encrypted clusters
> -------------------------------------------------------------
>
>                 Key: SLIDER-907
>                 URL: https://issues.apache.org/jira/browse/SLIDER-907
>             Project: Slider
>          Issue Type: Bug
>          Components: registry, test, Web & REST
>    Affects Versions: Slider 0.80
>         Environment: Test cluster with HTTPS set up at the RM Proxy
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>             Fix For: Slider 0.90
>
>
> When you try to run {{AgentWebPagesIT#testAgentWeb}} against a cluster with 
> the RM proxy set up for HTTPS, the negotiation fails and hence the test



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to