java - keytool -genkey error: Keystore file does not exist -
i try create new self certified keystore file
the command use is:
keytool -genkey -selfcert -dname "cn=my name, ou=orga unit" -alias selfcertified -keypass somepass -keystore keystore.jks -storepass anotherpass -validity 365
but annoying error:
keytool error: java.lang.exception: keystore file not exist: keystore.jks
i not understand why i'm getting error. command above should create new keystore, why complaining non existing store?
generating key pair (and new keystore) has done separate operation creating self-signed certificate key.
i.e.
keytool -genkey -alias mykey -keystore store.jks keytool -selfcert -alias mykey -keystore store.jks
Comments
Post a Comment