jconsole does not connect to Fuse with fabric container using SSL
Issue
-
We want enable remote jmx ssl on my platform Fuse. JBoss Fuse does not get started over SSL while accessing MBeans over SSL.
-
1) Create keystore as following and then placed the
"jbossweb.keystore"keystore inside the"jboss-fuse-6.0.0.redhat-024/etc"directory.:
$JAVA_HOME/bin/keytool -genkey -v -alias jbossalias -keyalg RSA -keysize 1024 -keystore jbossweb.keystore -validity 3650 -keypass JbossPassword -storepass JbossPassword -dname "CN=127.0.0.1, OU=RedHat Software Unit, O=RedHat, L=Pune, S=Maharashtra, C=IN"
- 2) Create a project which registers the keystore into OSGi as a service
"test-blueprint.xml":
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0">
<jaas:keystore xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.1.0"
name="sample_keystore"
rank="1"
path="file:///$KARAF_HOME/etc/jbossweb.keystore"
keystorePassword="JbossPassword"
keyPasswords="jbossalias=JbossPassword"/>
</blueprint>
- 3) Install
"test-blueprint.xml"as follows:
JBossFuse:karaf@root> osgi:install blueprint:file://test-blueprint.xml
- 4) Append this to
"etc/org.apache.karaf.management.cfg":
secured=true
secureProtocol=SSL
keyStore=sample_keystore
trustStore=sample_keystore
keystoreAlias=jbossalias
-
5) Connect to JMX using jconsole
-
Following Exception is observed in the
"fuse.log"
10:53:17,383 | INFO | t-60024-thread-1 | OsgiKeystoreManager | 17 - org.apache.karaf.jaas.config - 2.3.0.redhat-60024 | Keystore sample_keystore not found
10:53:18,384 | INFO | t-60024-thread-1 | OsgiKeystoreManager | 17 - org.apache.karaf.jaas.config - 2.3.0.redhat-60024 | Keystore sample_keystore not found
10:53:18,677 | INFO | edhat-024/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.3.11.redhat-60024 | Installed /home/fusesource/jboss-fuse-6.0.0.redhat-024/etc/test-blueprint.xml
Environment
- JBoss Fuse
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
