Problem
Note that as from Oracle JAVA 11, the KeyStore PKCS12 is the default keystore format and its implementation was moved from the SunJSSE provider. Therefore, if the keystore is in PCKS12 and the Java version is 11, the following error can occur when Domibus tries to load the keystore.: "Could not load key store: keystore password was incorrect" (the password is in fact correct).
Solution
If such a scenario occurs, the keystore must be recreated from the problematic keystore with a legacy format. To do this, run the following command:
keytool -J-Dkeystore.pkcs12.legacy -importkeystore -srckeystore test-jdk1.8.0_301.p12 -destkeystore test-jdk1.8.0_301-legacy.p12 -srcstoretype PKCS12 -deststoretype PKCS12