Bug 951388 - [RHQ] Change location of the generic keystore and truststore files in the agent-configuration.xml
Summary: [RHQ] Change location of the generic keystore and truststore files in the age...
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Agent
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-12 08:02 UTC by bkramer
Modified: 2022-03-31 04:28 UTC (History)
1 user (show)

Fixed In Version:
Clone Of: 951382
: 951382 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description bkramer 2013-04-12 08:02:27 UTC
Description of problem:

Default agent-configuration.xml file specifies $RHQ-AGENT/data/ location for the generic keystore and truststore files:

******************************************

               <entry key="rhq.communications.connector.security.secure-socket-protocol" value="TLS" />
               <entry key="rhq.communications.connector.security.keystore.file"          value="data/keystore.dat" />
               <entry key="rhq.communications.connector.security.keystore.algorithm"     value="SunX509" />
               <entry key="rhq.communications.connector.security.keystore.type"          value="JKS" />
               <entry key="rhq.communications.connector.security.keystore.password"      value="rhqpwd" />
               <entry key="rhq.communications.connector.security.keystore.key-password"  value="rhqpwd" />
               <entry key="rhq.communications.connector.security.keystore.alias"         value="rhq" />
               <entry key="rhq.communications.connector.security.truststore.file"        value="data/truststore.dat" />
               <entry key="rhq.communications.connector.security.truststore.algorithm"   value="SunX509" />
               <entry key="rhq.communications.connector.security.truststore.type"        value="JKS" />
               <entry key="rhq.communications.connector.security.truststore.password"    value="" />
               <entry key="rhq.communications.connector.security.client-auth-mode"       value="none" />

               <entry key="rhq.agent.client.security.secure-socket-protocol"   value="TLS" />
               <entry key="rhq.agent.client.security.keystore.file"            value="data/keystore.dat" />
               <entry key="rhq.agent.client.security.keystore.algorithm"       value="SunX509" />
               <entry key="rhq.agent.client.security.keystore.type"            value="JKS" />
               <entry key="rhq.agent.client.security.keystore.password"        value="rhqpwd" />
               <entry key="rhq.agent.client.security.keystore.key-password"    value="rhqpwd" />
               <entry key="rhq.agent.client.security.keystore.alias"           value="rhq" />
               <entry key="rhq.agent.client.security.truststore.file"          value="data/truststore.dat" />
               <entry key="rhq.agent.client.security.truststore.algorithm"     value="SunX509" />
               <entry key="rhq.agent.client.security.truststore.type"          value="JKS" />
               <entry key="rhq.agent.client.security.truststore.password"      value="" />
               <entry key="rhq.agent.client.security.server-auth-mode-enabled" value="false" />


******************************************


This is wrong as any purge or configure operation will delete the entire content of the data directory. 


Version-Release number of selected component (if applicable):
RHQ 4.4.0

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:


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