Bug 535629 (RHQ-2304) - get CLI to work over SSL out of box without requiring manual config
Summary: get CLI to work over SSL out of box without requiring manual config
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-2304
Product: RHQ Project
Classification: Other
Component: CLI
Version: unspecified
Hardware: All
OS: All
high
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Sudhir D
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard: verified
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-07 14:37 UTC by John Mazzitelli
Modified: 2009-08-14 13:17 UTC (History)
0 users

Fixed In Version: 1.3
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2009-08-07 14:37:00 UTC
Right now, the user has to pass in -D props to the CLI in order to be able to talk to the server over SSL, even if the user just wants to use encryption and have the CLI auto-gen a self-signed cert.

We should enable this out of box - if the user didn't set any props, provide some sensible defaults so the CLI will be able to self-sign an auto-gen cert.

Comment 1 John Mazzitelli 2009-08-08 06:45:57 UTC
no need to mess with environment vars if you are on a Sun JRE and you only need a self-signed auto-generated cert.

Comment 2 John Mazzitelli 2009-08-08 06:46:50 UTC
to test:

just start the out-of-box CLI (don't mess with any env files or set special props) and login over SSL:

login rhqadmin rhqadmin localhost 7443

it should connect. then go to your  CLI's data/ directory and confirm you have a keystore.dat file created.

Comment 3 Sudhir D 2009-08-14 13:17:14 UTC
This is verified, login was successful and the keystore.dat gets created successfully in data/ directory.

[root@dhcp6-150 bin]# ./rhq-cli.sh 
RHQ - RHQ Enterprise Remote CLI 1.3.0-SNAPSHOT
unconnected$ login rhqadmin rhqadmin localhost 7443
Remote server version is: 1.3.0-SNAPSHOT(4856)
Login successful

rhqadmin@localhost:7443$quit

[root@dhcp6-150 bin]# cd ..
[root@dhcp6-150 rhq-remoting-cli-1.3.0-SNAPSHOT]# ls
bin  conf  data  lib  logs
[root@dhcp6-150 rhq-remoting-cli-1.3.0-SNAPSHOT]# cd data
[root@dhcp6-150 data]# ls
keystore.dat


Comment 4 Red Hat Bugzilla 2009-11-10 21:01:52 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2304



Note You need to log in before you can comment on or make changes to this bug.