Reputation: 63
I got a problem when I try to deploy the WSO2 EMM server. In the doc https://docs.wso2.org/display/EMM101/iOS+Server+Configurations, step 7.b, when I try to execute this command:
keytool -importkeystore -srckeystore ca.p12 -srcstoretype PKCS12 -destkeystore wso2mobilemdm.jks
I got this error message:
"keytool error: java.io.IOException: Invalid keystore format"
looks like the wso2mobilemdm.jks is corrupt? I copy the wso2mobilemdm.jks
from the binary package
"wso2mobileserver-1.0.1\repository\resources\security\wso2mobilemdm.jks"
Anything wrong?
Upvotes: 6
Views: 44155
Reputation: 2150
This problem happened to me also. The reason in my case was that "Keystore" was created using a different JDK i.e. oracle JDK, And I was trying to open it with the keytool command available in IBM's JDK. Once I tried with Oracle JDK it worked.
Upvotes: 5
Reputation: 3221
That is because you are entering a wrong password. Just delete that file and execute this command again. It will create a new wso2mobilemdm.jks. Enter your passwords there. Also import the ra.p12 to the same keystore file you just created. There is no harm doing this since wso2mobilemdm.jks only will contain ca and ra entries.
Upvotes: 3