Resolve the Issue: ''General SSLEngine Problem'' [Snippet]
Learn how to resolve the ''General SSLEngine problem.''
Join the DZone community and get the full member experience.
Join For FreeThis 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 calls the remote application, which is deployed in the Anypoint Runtime Fabrics.
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.
Let us know your thoughts and questions in the comments.
Published at DZone with permission of Gary Liu, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments