I created a client.p12 keystore using openssl . Now I'm trying to import the private key using java Keytool into a new JKS keystore. I tried the command:
keytool -importkeystore -srckeystore "/certs/client.p12" -srcstoretype pkcs12 -srcstorepass "pass" -destkeystore /certs/keystore.jks -deststoretype pkcs12 -deststorepass "pass"
Java version used - 11.0.11
But I get the following error message:
keytool error: java.io.IOException: keystore password was incorrect
How can I resolve this error so I can import this key into a new JKS keystore?