As for the original question, you can use the keytool command to view and edit the keystore, such as cacerts .
To view all keys in a keystore, use keytool -list :
$ keytool -list -keystore ${keystore.file}
where ${keystore.file} is the path to the cacerts , in your case C:\IBM\Websphere85\jdk\jre\lib\security\cacerts .
To delete a specific key, use keytool -delete :
$ keytool -delete -alias ${cert.alias} -keystore ${keystore.file}
where ${cert.alias} is the existing key alias from the above -list . *
To add a new key that has already been generated elsewhere, use keytool -importcert :
$ keytool -importcert -alias ${cert.alias} -keystore ${keystore.file} -file ${cer.file}
where ${cer.file} is the path to an existing certificate or certificate chain.
Please note that for each of these commands you will be asked to enter a keystore password, which you can specify with the -storepass option -storepass . For example:
$ keytool -delete -noprompt -alias ${cert.alias} -keystore ${keystore.file} -storepass ${keystore.pass}
* ${cert.alias} is the leftmost value in the lines output from keytool -list .
For example, if this is the exit from keytool -list :
$ keytool -list -keystore ./cacerts Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains 2 entries verisignclass1ca, Jun 29, 1998, trustedCertEntry, Certificate fingerprint (MD5): 51:86:E8:1F:BC:B1:C3:71:B5:18:10:DB:5F:DC:F6:20 verisignserverca, Jun 29, 1998, trustedCertEntry, Certificate fingerprint (MD5): 74:7B:82:03:43:F0:00:9E:6B:B3:EC:47:BF:85:A5:93
then verisignclass1ca and verisignserverca are aliases that you can specify for deletion.