---
schema_version: "1"
id: 4d80a0a4c243acd842d082bba038d55187f6d1713ae5a72e7ce2a61f6531e89a
title: Configure Private Cloud Edition in Anypoint Studio (macOS)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/studio/pce-configuration-macos.md
canonical_url: https://docs.mulesoft.com/studio/pce-configuration-macos
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 29f89073eb0694f355fa265f0593ffc9abc2b264bb504f992efec6636fdf9eec
description: MuleSoft Documentation Site
latest: true
---
---
product: Studio
---

# Configure Private Cloud Edition in Anypoint Studio (macOS)

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

Anypoint Studio 7.4 through 7.7 support native integration with Anypoint Platform Private Cloud
Edition (PCE) versions 1.6 and 2.0 and 3.0

Anypoint Studio 7.8 and later only support native integration with PCE version 3.0.0

Starting with Anypoint Studio 7.17, the default JDK version for Studio is Java 17. To ensure proper
functionality, add the certificate to the default JDK version that Studio supports.

- If you use an external JDK, add the certificate to the external JDK that you use with Studio.

- If you use the default JDK Studio provides, add the certificate to the default JDK, regardless of
  the JDK version you use in your project. After installing the certificate, if you have Studio
  open, restart it.

## Configure Your PCE Certificates into Studio

Follow these steps to integrate your Studio installation with the Anypoint Platform components in a
PCE deployment:

1.  Extract your CA certificate using OpenSSL:

    ```bash
    openssl s_client -connect <dsm-name>:443 -showcerts > <certificate_name>.pem
    ```

    - Where `<dsm-name>` is the domain name of your PCE instance.

    - And `<certificate_name>.pem` is the name that you define for the file to which you exported
      your certificate.

      For example:

      ```bash
      openssl s_client -connect your.dsm.name.com:443 -showcerts > my-certificate.pem
      ```

2.  Add your `.pem` file certificate to your Studio embedded Java cacerts keystore:

    ```bash
    keytool -importcert \
    -keystore <cacerts_path> \ (1)
    -storepass <pass> \ (2)
    -alias <alias> \ (3)
    -file <certificate_name>.pem (4)
    ```

    <table><tbody><tr><td><i data-value="1"></i><b>1</b></td><td><code>cacerts_path</code> is your Anypoint Studio artifact.<br>For example:<div><ul><li><p>Java 11: <code>AnypointStudio.app/Contents/Eclipse/plugins/org.mule.tooling.jdk.macosx.x86_64_1.1.5/Contents/Home/lib/security/cacerts</code>.</p></li><li><p>Java 8: <code>AnypointStudio.app/Contents/Eclipse/plugins/org.mule.tooling.jdk.v8.macosx.x86_64_1.1.5/Contents/Home/jre/lib/security/cacerts</code>.</p></li></ul></div></td></tr><tr><td><i data-value="2"></i><b>2</b></td><td><code>pass</code> is your cacerts keys store password.<br>Java default cacerts password is <code>changeit</code>.</td></tr><tr><td><i data-value="3"></i><b>3</b></td><td><code>alias</code> is the name your certificate gets when you save it in the keystore. For example, <code>my-certificate</code>.</td></tr><tr><td><i data-value="4"></i><b>4</b></td><td><code>certificate_name</code> is the path to the <code>.pem</code> file generated and saved in the previous step.</td></tr></tbody></table>

3.  Add your certificate to your macOS keystore and set it as always trusted:

    ```bash
    security add-trusted-cert -r trustRoot -k "${HOME}/Library/Keychains/login.keychain-db" \
    <certificate_name>.pem
    ```

    Optionally, you can use the KeyChainAccess UI:

    1.  On your computer, open your `KeychainAccess.app`.

    2.  In the left navigation bar, select **System**.

    3.  Drop the `.pem` file that you generated in the previous task into the list of certificates.

    4.  Double-click your imported `.pem` file and select **Always Trust** from the **When using
        this certificate** drop-down menu.

        ![\*Always Trust\* option highlighted in the drop-down menu.](/mulesoft/current/en-us/studio/_images/always-trust-certificate.png)

4.  In Studio, open the preferences view.  
    Navigate to **Anypoint Studio** > **Preferences…​** or press `cmd + ,`.

5.  Expand **Anypoint Studio** in the left navigation bar, and select **Anypoint Platform**.

    ![Anypoint Studio highlighted in the navigation bar.](/mulesoft/current/en-us/reuse/_images/studio-anypoint-platform-settings.png)

6.  Select the **Use a Private Cloud Instance URL**.

7.  Type the URL of your PCE installation in the **Private Cloud Instance URL** field.

    ![\*Private Cloud Instance URL\* field highlighted in the in the \*PCE Settings\* section.](/mulesoft/current/en-us/studio/_images/pce-properties.png)

8.  Click **Apply and Close**.

9.  Restart Studio.

## Configure your PCE User Login

The first time you configure your user’s login, Studio asks you to confirm your PCE certificate:

1.  Open the preferences view.  
    Either navigate to **Anypoint Studio** > **Preferences…​** or press `cmd + ,`.

2.  Expand **Anypoint Studio** in the left navigation bar, select **Authentication** > **Add**.

    ![\*Authentication\* option and \*Add\* button highlighted in the \*Preference\* window.](/mulesoft/current/en-us/studio/_images/preferences-authentication-add.png)

3.  Select **Yes** in the **Invalid Certificate** message that appears.

    ![\*Yes\* button highlighted in the \*Invalid Certificate\* message window.](/mulesoft/current/en-us/studio/_images/invalid-certificate-pce.png)

4.  Add your PCE credentials and sign-in.

5.  Select **Apply and Close**.

6.  Restart Studio.
