The following are two different types of SSLHandshakeException errors that are recorded in Anypoint Code Builder when either connecting to Anypoint Exchange, Design Center, Studio, Connector, Munit, Runtime update or deploying an application to Cloudhub.
javax.net.ssl.SSLHandshakeException: org.eclipse.ecf.internal.ssl.ECFCertificateException: Valid cert chain, but no trust certificate found!
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Note that the UI might show a generic unable to access, download or access denied error. The certificate error might be captured in the Anypoint Code Builder logs. For more information on how to view Anypoint Code Builder logs refer to the ACB troubleshooting docs.
The cause of these errors is usually related to proxies doing SSL inspection and replacing the SSL certificates, which are not known by your JVM.
Note: If the error occurs only while you are using VPN, ensure that you are connected to the VPN before completing all of these steps.
Create a folder to download/export the certificates to your computer
Open a browser and go to https://anypoint.mulesoft.com/login (and/or any other URLS that produce the error when accessing them).
If using Chrome (similar steps should apply to other browsers):
Click the lock icon in the browser address bar > Connection is secure > Certificate is valid > Details tab.
You should see the certificates "tree". You will need to download all of them (each level) by clicking on it and then clicking on "Export"
When downloading each certificate, save the certificate in the folder you created and rename the certificate matching the original name of the certificate as much as possible. Please delete any spaces. For example, if the certificate is called "Amazon Root CA 1," rename it to “amazon_root_ca_1.cer”.
1. Using a plain text editor (Notepad, Notepad++, Sublime, VS Code, etc), copy the base commands so you can edit them to match your paths for the Java Truststore and the certificates you downloaded. Notice you will need to run the command once per certificate, per Java Version.
Find below the base command for Mac and Windows. In both, you need to replace the “<certificate name.cer>” with the file name of the certificate downloaded, and the “<JDK_VERSION>” with the Java version packed with Anypoint Code Builder or the Project level JDK (might be more than one).
2. To make it easier, list all the commands (the same command with different file names) for all the downloaded certificates.
The issue should now be solved.
Note: If you enter a password for the first command and get the error "keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect," then this means you have already created a password. If you don't remember the password, delete the file "cacerts" from the "/.../security/" directory and try again.
004518469

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.