Bug 797746 - HttpProtocol should use default keystore location if not specified
HttpProtocol should use default keystore location if not specified
Status: NEW
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBossESB (Show other bugs)
5.2.0 GA
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: kconner
Depends On:
  Show dependency treegraph
Reported: 2012-02-27 03:16 EST by Martin Weiler
Modified: 2012-08-14 09:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Enhancement
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Martin Weiler 2012-02-27 03:16:40 EST
Description of problem:
Using HttpRouter to connect to https:// requires to specify information about the ssl key. If the keystore location is not explicitly defined, '/keystore' is used as default location.

This default location should be changed to use the default JRE keystore location - ${JAVA_HOME}/lib/security/cacerts

Version-Release number of selected component (if applicable):
JBossESB 4.10

How reproducible:

Steps to Reproduce:
1. Set up HttpRouter with https:// target endpoint
2. Don't explicitly  set the "keystore" property
Actual results:
Initialization fails:

Caused by: org.jboss.soa.esb.ConfigurationException: Failed to locate keystore '/keystore'.
        at org.jboss.soa.esb.http.configurators.HttpProtocol.getKeyMaterial(HttpProtocol.java:200)
        at org.jboss.soa.esb.http.configurators.HttpProtocol.configure(HttpProtocol.java:94)
        at org.jboss.soa.esb.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:84)
        at org.jboss.soa.esb.actions.routing.http.HttpRouter.<init>(HttpRouter.java:113)

Expected results:
Initialization succeeds by using the default keystore location. An INFO message could inform the user that the default keystore is used.

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