This article explains how to create both Keystore and truststore SSL certificates using Java keytool utility.
JDK must be installed on the system. The keytool utility is available in JAVA_HOME\bin directory
Three are the steps needed to generate the needed assets to use in our Mule app to have trusted
communications:
. ├── keystore.jks ├── localhost.cer └── truststore.jks
keytool -v -genkeypair -keyalg RSA -dname "cn=MuleSoft, ou=MuleSoft, o=MuleSoft,L=San Francisco, st=CA, c=US" -ext SAN="DNS:localhost,IP:127.0.0.1" -validity 1825 -alias mykeyalias -keystore keystore.jks -keypass mule123 -storepass mule123
keytool -export -alias mykeyalias -file localhost.cer -keystore keystore.jks
keytool -import -v -trustcacerts -alias mykeyalias -file localhost.cer -keystore truststore.jks
Disclaimer:
These set of steps are provided as a reference for your own usage and is not to be considered a MuleSoft product.
Same time, using self-signed SSL certificates is not recommended for using on Production environments.
Reference Link:
How to create a self-signed certificate
001115916

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.