The keystore i have is in PKCS format. I cant use keytool or openssl to view its contents because its password is not the actual password to use.
I am supposed to use the password
string to get the MD5 has of this string. The actual password becomes the string from the MD5 bytes of the original string. For example for the string "Baltimore1," the password is ���_>y'?s�3����^
I have been able to use the above password programmatically to view the contents of the p12 keystore.
The problem i have with the above approach is that the libraries i want to use the keystore on (Apache Rampart or WSS4J) expects the password to be stored as plain text. I cant really store the string ���_>y'?s�3����^ in a properties file.
So what i want to do is to extract the key/certificate from the p12 file and save it on a jks keystore with a password that is readable and that can be stored in a properties/configuration file.