Bug 535629 (RHQ-2304)

Summary: get CLI to work over SSL out of box without requiring manual config
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: CLIAssignee: John Mazzitelli <mazz>
Status: CLOSED NEXTRELEASE QA Contact: Sudhir D <sdharane>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Improvement
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-2304
Whiteboard: verified
Fixed In Version: 1.3 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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