The Background
This happens when you enable the HTTPS with your own certificates. In my case, I have configured Anypoint runtime fabrics with self generated certification using the following command:
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
The above command generates two files: cert.pem and key.pem. The purpose of them is beyond the scope of the article.
The error will occur when the local mule flow call the remote application which is deployed in the Anypoint Runtime Fabrics.
Solution
To resolve this problem, we just need to import the cert.pem to cacerts file. The command is (on MacOs):
cd /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/jre/lib/security
sudo keytool -import -trustcacerts -keystore cacerts -storepass changeit -alias rogers-poc-cert -file /Users/gl17/anypoint/certs/poc/cert.pem
Make sure restart Anypoint Studio.
Thanks for sharing such a beautiful information with us. I hope you will share more info about
ReplyDeleteit. Please keep sharing.Best Lenovo service center in Hyderbad
Best Laptop service center in Hyderbad
ReplyDeleteThank you for sharing wonderful information with us to get some idea about that content.
Mulesoft Online Training india
Mulesoft Online Training in Hyderabad