knox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry McCay (JIRA)" <>
Subject [jira] [Commented] (KNOX-733) Add support for custom truststore to Knox shell client
Date Wed, 07 Sep 2016 21:05:20 GMT


Larry McCay commented on KNOX-733:

To provide a way for demos to not require truststores, I've added a new login method called
loginInsecure(). This mode of the programming model will warn the user running it with the
following in stdout:

**************** WARNING ******************
This is an insecure client instance and may
leave the interactions subject to a man in
the middle attack. Please use the login()
method instead of loginInsecure() for any
sensitive or production usecases.

I've also tried to add additional context information to the possible errors for truststore

The most common issue however will end up being an SSLHandshakeException when the presented
cert can't be verified.

> Add support for custom truststore to Knox shell client
> ------------------------------------------------------
>                 Key: KNOX-733
>                 URL:
>             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 { }
> I can provide a patch if you are happy with this approach.

This message was sent by Atlassian JIRA

View raw message