Contact Us 1-800-596-4880

Configure Private Cloud Edition in Studio (macOS)

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

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:

    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:

      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:

    keytool -importcert \
    -keystore <cacerts_path> \ (1)
    -storepass <pass> \ (2)
    -alias <alias> \ (3)
    -file <certificate_name>.pem (4)
    1 cacerts_path is your Anypoint Studio artifact.
    For example:
    • Java 11: AnypointStudio.app/Contents/Eclipse/plugins/org.mule.tooling.jdk.macosx.x86_64_1.1.5/Contents/Home/lib/security/cacerts.

    • Java 8: AnypointStudio.app/Contents/Eclipse/plugins/org.mule.tooling.jdk.v8.macosx.x86_64_1.1.5/Contents/Home/jre/lib/security/cacerts.

    2 pass is your cacerts keys store password.
    Java default cacerts password is changeit.
    3 alias is the name your certificate gets when you save it in the keystore. For example, my-certificate.
    4 certificate_name is the path to the .pem file generated and saved in the previous step.
  3. Add your certificate to your macOS keystore and set it as always trusted:

    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.
  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.
  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.
  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.
  3. Select Yes in the Invalid Certificate message that appears.

    *Yes* button highlighted in the *Invalid Certificate* message window.
  4. Add your PCE credentials and sign-in.

  5. Select Apply and Close.

  6. Restart Studio.