Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AF0E7200B3E for ; Wed, 7 Sep 2016 21:41:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ADE85160AC1; Wed, 7 Sep 2016 19:41:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F38F6160ABF for ; Wed, 7 Sep 2016 21:41:25 +0200 (CEST) Received: (qmail 17148 invoked by uid 500); 7 Sep 2016 19:41:25 -0000 Mailing-List: contact dev-help@knox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@knox.apache.org Delivered-To: mailing list dev@knox.apache.org Received: (qmail 17137 invoked by uid 99); 7 Sep 2016 19:41:25 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 19:41:25 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C000CC0F01 for ; Wed, 7 Sep 2016 19:41:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.144 X-Spam-Level: X-Spam-Status: No, score=-5.144 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.124] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id sN6kDVB9d-sk for ; Wed, 7 Sep 2016 19:41:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id BA7585FAD5 for ; Wed, 7 Sep 2016 19:41:21 +0000 (UTC) Received: (qmail 16594 invoked by uid 99); 7 Sep 2016 19:41:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 19:41:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AFF462C1B81 for ; Wed, 7 Sep 2016 19:41:20 +0000 (UTC) Date: Wed, 7 Sep 2016 19:41:20 +0000 (UTC) From: "Larry McCay (JIRA)" To: dev@knox.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KNOX-733) Add support for custom truststore to Knox shell client MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Sep 2016 19:41:26 -0000 [ https://issues.apache.org/jira/browse/KNOX-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Larry McCay updated KNOX-733: ----------------------------- Attachment: KNOX-733-001.patch Initial patch for adding truststore support to Hadoop client shell class. This patch adds ENV variables with fallback to JSSE system properties finally falling back to cacerts. > Add support for custom truststore to Knox shell client > ------------------------------------------------------ > > Key: KNOX-733 > URL: https://issues.apache.org/jira/browse/KNOX-733 > Project: Apache Knox > Issue Type: Bug > Reporter: chris snow > Assignee: Larry McCay > Fix For: 0.10.0 > > Attachments: KNOX-733-001.patch > > > The Knox shell client does not verify the certificate of the server. > One option would be to provide another method where developers can provide their own client, e.g. > public static Hadoop login( String url, String username, String password, HttpClient client ) throws URISyntaxException { } > https://github.com/apache/knox/blob/master/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/Hadoop.java#L60 > I can provide a patch if you are happy with this approach. -- This message was sent by Atlassian JIRA (v6.3.4#6332)