Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 251E417B4D for ; Sat, 7 Feb 2015 08:34:37 +0000 (UTC) Received: (qmail 78739 invoked by uid 500); 7 Feb 2015 08:34:37 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 78698 invoked by uid 500); 7 Feb 2015 08:34:37 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 78687 invoked by uid 99); 7 Feb 2015 08:34:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Feb 2015 08:34:36 +0000 Date: Sat, 7 Feb 2015 08:34:36 +0000 (UTC) From: "Esteban Gutierrez (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-12984) SSL cannot be used by the InfoPort after removing deprecated code in HBASE-10336 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-12984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Esteban Gutierrez updated HBASE-12984: -------------------------------------- Summary: SSL cannot be used by the InfoPort after removing deprecated code in HBASE-10336 (was: SSL cannot be used by the InfoPort in branch-1) > SSL cannot be used by the InfoPort after removing deprecated code in HBASE-10336 > -------------------------------------------------------------------------------- > > Key: HBASE-12984 > URL: https://issues.apache.org/jira/browse/HBASE-12984 > Project: HBase > Issue Type: Bug > Affects Versions: 1.0.0, 2.0.0, 1.1.0 > Reporter: Esteban Gutierrez > Assignee: Esteban Gutierrez > Priority: Blocker > Attachments: HBASE-12984-v1.txt > > > Setting {{hbase.ssl.enabled}} to {{true}} doesn't enable SSL on the InfoServer. Found that the problem is down the InfoServer and HttpConfig in how we setup the protocol in the HttpServer: > {code} > for (URI ep : endpoints) { > Connector listener = null; > String scheme = ep.getScheme(); > if ("http".equals(scheme)) { > listener = HttpServer.createDefaultChannelConnector(); > } else if ("https".equals(scheme)) { > SslSocketConnector c = new SslSocketConnectorSecure(); > c.setNeedClientAuth(needsClientAuth); > c.setKeyPassword(keyPassword); > {code} > It depends what end points have been added by the InfoServer: > {code} > builder > .setName(name) > .addEndpoint(URI.create("http://" + bindAddress + ":" + port)) > .setAppDir(HBASE_APP_DIR).setFindPort(findPort).setConf(c); > {code} > Basically we always use http and we don't look via HttConfig if {{hbase.ssl.enabled}} was set to true and we assign the right schema based on the configuration. -- This message was sent by Atlassian JIRA (v6.3.4#6332)