> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/mqtt-consumer/select-an-engine-mqtt-consumer/using-the-mqtt-consumer-step-on-the-spark-engine-cp/using-mqtt-with-ssl-on-ael-mqtt-consumer-spark.md).

# Using MQTT with SSL on AEL

Complete the following steps to use the MQTT Consumer step with the Pentaho Adaptive Execution Layer (AEL) when connecting to an SSL-enabled MQTT server.

1. Navigate to the `data-integration/adaptive-execution/config` directory and open the `application.properties` file with any text editor.
2. Add the following parameters.

   1. Add the **DriverExtraJavaOptions** parameter for the Spark driver application and specify the file path for `client.ks` and its associated password on the cluster:

      ```
      sparkDriverExtraJavaOptions=-Dlog4j.configuration=file:${sparkApp}/classes/log4j.xml -Djavax.net.ssl.trustStore=*\[filepath to client.ks on the cluster\]*
      -Djavax.net.ssl.trustStorePassword=password

      ```

      ```
      sparkDriverExtraJavaOptions=-Dlog4j.configuration=file:${sparkApp}/classes/log4j.xml -Djavax.net.ssl.trustStore=/home/cloudera/client.ks
      -Djavax.net.ssl.trustStorePassword=password

      ```
   2. Add the **ExtraJavaOptions** parameter for the Spark executors and specify the file path for `client.ks` and its password on the cluster:

      ```
      sparkExecutorExtraJavaOptions=-Djavax.net.ssl.trustStore=*\[filepath to client.ks on the cluster\]* 
      -Djavax.net.ssl.trustStorePassword=password

      ```

   ```
   sparkExecutorExtraJavaOptions=-Djavax.net.ssl.trustStore=/home/cloudera/client.ks
   -Djavax.net.ssl.trustStorePassword=password

   ```
3. Save and close the file.
4. Navigate to the `data-integration/adaptive-execution` folder and run the `daemon.sh` command from the command line interface.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pentaho.com/pdia-data-integration/9.3-data-integration/pdi-transformation-steps-reference-overview/mqtt-consumer/select-an-engine-mqtt-consumer/using-the-mqtt-consumer-step-on-the-spark-engine-cp/using-mqtt-with-ssl-on-ael-mqtt-consumer-spark.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
