How to reset keystores when you do not know their password?

佐手、 提交于 2019-12-08 17:09:41

问题


For some reason I got this message:

keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect

I know that I cannot "repair" the keystore, but I want to reset the keystore, but don't know how to do it, especially because I do not know the location of the default keystores.

Note: I just want the "blank" them so I restart from default. Still I wasn't even able to detect their location.

How can I list default keystores and their locations with keytool or something similar?


回答1:


Just remove ~/.keystore file, which is the default keystore location.



来源:https://stackoverflow.com/questions/11614407/how-to-reset-keystores-when-you-do-not-know-their-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!