This content has been marked as final. Show 3 replies
Sorry, I meant it without 'mykey'. I thought just typing "keytool -genkey" would start the creating of a keystore, and all parameters are asked for afterward (CN, O etc). But even this gives the same error. Tried uninstalling and reinstalling java, in an attempt to 'reset' it, but no joy.
Edited by: edwardmluk on Mar 1, 2009 3:58 PM
if you don't supply a -keystore <storepath> when running keytool the store gets saved to ~/.keystore. So my guess on this is that you have a keystore there that are in an invalid format. This makes it impossible to open or store a new one there. Simply remove your keystore or try saving it somewhere else.
keytool -genkey -keystore /my/new/keystore