Bug 535621 (RHQ-2298)

Summary: get CLI to work over SSL
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: CLIAssignee: John Sanda <jsanda>
Status: CLOSED NEXTRELEASE QA Contact: John Sanda <jsanda>
Severity: medium Docs Contact:
Priority: high    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-2298
Whiteboard:
Fixed In Version: 1.3 Doc Type: Bug Fix
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:
Bug Depends On:    
Bug Blocks: 535763    

Description John Mazzitelli 2009-08-06 17:06:00 UTC
get the CLI to work over SSL.

RemoteClient hardcodes the transport to servlet in init().

It should try sslservlet if the connection fails, because it might be tryign to go over SSL.

We shoud also allow the user to tell us explicitly to use SSL (--secure command line option).

Comment 1 John Mazzitelli 2009-08-07 08:17:37 UTC
refactored lots of cli code to get this to work. now can provide keystore/truststore information to connect to server - you can use it for just encryption but you can also use it for authentication (and you can authenticate cli-to-server as well as the server-to-cli using truststores if you want).



Comment 2 Corey Welton 2009-09-15 04:44:04 UTC
This is on dev's plate.

Comment 3 John Sanda 2009-09-15 14:58:09 UTC
http://jira.rhq-project.org/browse/RHQ-2301 provides more detailed information on this. When invoking the login command as described in RHQ-2301, you can specify the port and transport layer to use as demonstrated below,

rhqadmin@localhost:7080$ login rhqadmin rhqadmin localhost 7443 sslservlet

or 

rhqadmin@localhost:7080$ login rhqadmin rhqadmin localhost 7443

both of the above will result in communication going over port 7443 using the sslservlet transport layer. This can also be done from the rhq-cli(.sh|.bat) start-up script as follows,

$ rhq-cli.sh -u rhqadmin -p rhqadmin -s localhost --port=7443

Note however that you *must* specify the host; otherwise the port argument will be ignored and the default (7080) will be used. This will logged under a separate jira.

Comment 4 John Sanda 2009-09-15 15:03:35 UTC
Opened RHQ-2425 for the issue involving the port value being ignored when the host is not specified with the start up script.

Comment 5 Corey Welton 2009-09-15 15:05:27 UTC
jsanda verified.

Comment 6 Red Hat Bugzilla 2009-11-10 21:01:43 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2298
This bug is duplicated by RHQ-2199