Over a million developers have joined DZone.

Enable JMX Authentication and SSL For Mule Runtime

DZone 's Guide to

Enable JMX Authentication and SSL For Mule Runtime

This brief article includes a tutorial that shows how to enable SSL for on-premise Mule runtimes.

· Integration Zone ·
Free Resource

In my previous article, I demonstrated how to change the Mule application logging level dynamically by using JMX MBeans. In that article, I skipped the procedure on how to enable SSL for JMX of Mule runtimes. Apparently, in the production environment, we will need to enable both authentication and SSL for the security purpose.

I will demonstrate the details about enabling SSL for on-premises Mule Runtimes. I will use local generated Cert for demonstration purpose. You may need to authorize the cert for your organization, but the basic procedures are the same.

On the Mule runtime server, execute the following commands:

mkdir ${MULE_HOME}/ssl
cd ${MULE_HOME}/ssl
keytool -genkey -alias tc401 -keyalg RSA -keystore tc401_keystore.jks
keytool -export alias tc401 -file tc401_cert -keystore tc401_keystore.jks
keytool -import -alias tc401 -keystore tc401_truststore.jks -file tc401_cert

The above commands will create keystore and truststore, which will be used by Mule Runtimes. To instruct a Mule Runtime to use the keystore and truststore, we need to update wrapper.conf file.

Add the following lines to ${MULE_HOME}/conf/wrapper.conf


Note that I use jmxremote.access and jmxremote.password for the user permission and authentication. The details can be referred to in my last article.

jvisualvm -J-Djavax.net.ssl.trustStore=./tc401_truststore.jks -J-Djavax.net.ssl.trustStorePassword=changeme

The following snapshots show how the page of login with SSL is enabled.

integration ,ssl ,production ,tutorial ,mule ,runtime ,on-premise

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}