openssl s_client -connect <dsm-name>:443 -showcerts > <certificate_name>.pem
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:
-
Extract your CA certificate using OpenSSL:
-
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
-
-
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 ischangeit
.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. -
-
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:
-
On your computer, open your
KeychainAccess.app
. -
In the left navigation bar, select System.
-
Drop the
.pem
file that you generated in the previous task into the list of certificates. -
Double-click your imported
.pem
file and select Always Trust from the When using this certificate drop-down menu.
-
-
In Studio, open the preferences view.
Navigate to Anypoint Studio > Preferences… or presscmd + ,
. -
Expand Anypoint Studio in the left navigation bar, and select Anypoint Platform.
-
Select the Use a Private Cloud Instance URL.
-
Type the URL of your PCE installation in the Private Cloud Instance URL field.
-
Click Apply and Close.
-
Restart Studio.
Configure your PCE User Login
The first time you configure your user’s login, Studio asks you to confirm your PCE certificate:
-
Open the preferences view.
Either navigate to Anypoint Studio > Preferences… or presscmd + ,
. -
Expand Anypoint Studio in the left navigation bar, select Authentication > Add.
-
Select Yes in the Invalid Certificate message that appears.
-
Add your PCE credentials and sign-in.
-
Select Apply and Close.
-
Restart Studio.