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 4656C200AF7 for ; Mon, 30 May 2016 17:02:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 44F29160A3C; Mon, 30 May 2016 15:02:12 +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 95686160A19 for ; Mon, 30 May 2016 17:02:11 +0200 (CEST) Received: (qmail 25623 invoked by uid 500); 30 May 2016 15:02:10 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 25564 invoked by uid 99); 30 May 2016 15:02:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 May 2016 15:02:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A84A8DFDEF; Mon, 30 May 2016 15:02:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: svet@apache.org To: commits@brooklyn.apache.org Date: Mon, 30 May 2016 15:02:12 -0000 Message-Id: <8899a4221a4f492488218101c6aef8b2@git.apache.org> In-Reply-To: <29bbeae8ba804f45b106c9cada3de7bd@git.apache.org> References: <29bbeae8ba804f45b106c9cada3de7bd@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/3] brooklyn-client git commit: Closes #21 archived-at: Mon, 30 May 2016 15:02:12 -0000 Closes #21 [BROOKLYN-280] add --skipSslChecks flag to work with self-signed certs - defaults to `false`, ie existing behaviour - setting the flag `--skipSslChecks` disables certificate chain and hostname verification (see `InsecureSkipVerify` in https://golang.org/pkg/crypto/tls/) - persisted to `~/.brooklyn_cli` - also bumped version to `0.10.0-SNAPSHOT` ``` bash-4.3$ br login https://10.10.10.100:8443/ admin password Get https://10.10.10.100:8443/v1/server/version: x509: certificate signed by unknown authority bash-4.3$ br app Get https://10.10.10.100:8443/v1/applications: x509: certificate signed by unknown authority bash-4.3$ br --skipSslChecks login https://10.10.10.100:8443/ admin password Connected to Brooklyn version 0.10.0-20160513.2042 at https://10.10.10.100:8443 bash-4.3$ br app Id Name Status Location ``` *Note*: I'd no apps running on this system so the empty table is ok, catalog returns as expected. ```json { "auth": { "https://10.10.10.100:8443": { "password": "password", "username": "admin" } }, "skipSslChecks": true, "target": "https://10.10.10.100:8443" } ``` Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/9700ec0a Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/9700ec0a Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/9700ec0a Branch: refs/heads/master Commit: 9700ec0ab005438bab08df8f1596304093ea177e Parents: 39fad13 fe57b6a Author: Svetoslav Neykov Authored: Mon May 30 18:02:01 2016 +0300 Committer: Svetoslav Neykov Committed: Mon May 30 18:02:01 2016 +0300 ---------------------------------------------------------------------- app/app.go | 9 ++++++++- br/brooklyn.go | 10 ++++++---- commands/login.go | 2 ++ net/net.go | 10 ++++++++-- 4 files changed, 24 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/9700ec0a/app/app.go ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/9700ec0a/commands/login.go ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/9700ec0a/net/net.go ----------------------------------------------------------------------