When creating a keystore in the Secrets Manager, the below error gets thrown. This issue occurs when the keystore is generated using JDK 8 keytool.
Error Message:"Invalid value provided for the filed "Keystore Passphrase. Failed to parse the given file with error: keystore password was incorrect."
Certain keystore formats or encryption algorithms used in older JDKs (i.e JDK8) may not be fully compatible with the Secrets Manager's expected format or security requirements.
Please use the below command to create a self-signed cert if JDK8 keytool needs to be used.
keytool \
-genkeypair \
-alias server \
-keyalg RSA \
-keysize 3072 \
-validity 365 \
-storetype PKCS12 \
-keystore mule123.p12 \
-storepass mule123 \
-keypass mule123 \
-J-Dkeystore.pkcs12.keyProtectionAlgorithm=PBEWithHmacSHA256AndAES_256 \
-J-Dkeystore.pkcs12.certProtectionAlgorithm=PBEWithHmacSHA256AndAES_256 \
-dname "CN=max, OU=MuleSoft, O=MuleSoft Inc, L=San Francisco, S=CA, C=01"
Alternatively, you can use either OpenSSL or the keytool from JDK 17 to avoid encountering this error.
004867799

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.