WSS4J on Mac OSX Fix
I have been having a heck of a time with using anything on my Mac OSX that uses the WSS4J Web Services Security file. I have been trying to use the WSS4J that is used in SoapUI and Apache CXF. I had all of these projects setup and working without fail, then all of a sudden everything just stopped working.
After doing some research I found that Apple decided to change the Java cacerts keystore default password from “changeit” to “changeme”. Since WSS4J tries to connect to the cacerts keystore first with the default password of “changeit” the applications throw a exception and never try to load my local keystores.
To fix this issue, I went to /Library/Java/Home/lib/security/ and ran the following command to change the keystore password back to “changeit” which fixed all of my issues.
sudo keytool -storepasswd -new changeit -keystore /Library/Java/Home/lib/security/cacerts -storepass changemeI really don’t know why Apple decided to change the default password of the cacerts keystore from what ever other version on the planet is, but I sure hope that they change it back.



