---
schema_version: "1"
id: 86edd0606e37122bffc8f75e3d4417fd9c0f9ba0bbcca325e647af28b12ecc4c
title: Configure the Mutual TLS Authentication
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/amqp-connector/1.8/amqp-mtls.md
canonical_url: https://docs.mulesoft.com/amqp-connector/1.8/amqp-mtls
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 4e7f2af8c3ca7622d0b2dca324f8a7cbc785f5cef2fe3d34b599b5d3cb5373c5
description: MuleSoft Documentation Site
release: "1.8"
latest: false
---
---
product: AMQP Connector
version: 1.8
---

# Configure the Mutual TLS Authentication

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The following example shows how to configure Anypoint Connector for AMQP (AMQP Connector) to connect
to an AMQP broker with mutual TLS (mTLS) authentication. To configure the global configuration
connection you need:

- A client truststore that includes the Certificate Authority’s certificates that are required for
  the server validation.

- A client keystore that provides the client private key and certificate that are required for the
  authentication.

- To enable the parameters **Use TLS** and **Use SNI** on the AQMP global configuration in Anypoint
  Studio.

## Configure the Connection

To configure the Mutual TLS authentication connection in Studio, follow these steps:

1.  Navigate to the **Global Elements** tab and click **Create**.

2.  In the filter box, type `AMQP`.

3.  Select **AQMP Config**.

4.  Click **OK**.

5.  In the **General** tab, for the **Connection** section, set the following parameters:

    - **Host**: `localhost`

    - **Port**: `${rabbitmq.tls.port}`

6.  Select the **Use tls** and **Use sni** parameters boxes.

7.  Click the **TLS** tab.

8.  For **TLS Configuration** select **Edit inline**.

9.  In the **Trust Store Configuration** section, set the following parameters:

    - **Path**: `mtls/truststore.jks`

    - **Password**: `test`

    - **Type**: `JKS`

10. In the **Key Store Configuration** section, set the following parameters:

    - **Type**: `JKS`

    - **Path**: `mtls/test.jks`

    - **Alias**: `test`

    - **Key Password**: `test`

    - **keyPassword**: `test`

11. Click **OK**.

In Studio, the AMQP global configuration with TLS authentication looks like this:

![Configure AMQP Mutual TLS Authentication in global configuration element window](/mulesoft/current/en-us/amqp-connector/1.8/_images/amqp-tls-configuration.png)

Figure 1. AMQP Mutual TLS Authentication configuration

## XML for Configuring Mutual TLS Authentication

In the XML editor, the configuration looks like this:

```xml
<amqp:connection host="localhost" port="${rabbitmq.tls.port}" useTls="true" useSasl="true" >
            <tls:context >
                <tls:trust-store path="mtls/truststore.jks" password="test" type="jks" />
                <tls:key-store type="jks" path="mtls/test.jks" alias="test" keyPassword="test" password="test" />
            </tls:context>
</amqp:connection>
```

## See Also

- [TLS Configuration](https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration)

- [Salesforce Help](https://help.salesforce.com)
