Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keystore password is too short - must be at least 6 characters for import

Tags:

keytool

I wanted to use https://stackoverflow.com/a/7094044/384674 for importing pem into p12, but keystore password is 5 characters and keytool is complaining it needs to be 6 :-/

keytool -import -alias alias -keystore ./trust.p12 -storetype PKCS12 -file new.pem
Enter keystore password:
Keystore password is too short - must be at least 6 characters

edit:

There was a comment, this is not working in some of later versions of keytool but comment was removed, please be aware or let us know as I do not know version I was testing with.

like image 701
Betlista Avatar asked Aug 14 '17 14:08

Betlista


People also ask

How do I find my keystore password?

From the logs: If you have your logs intact, then you can find the password in the Android Studio log files: Go to ~/Library/Logs -> AndroidStudio ->idea. log. 1 and search for "Pandroid. injected.

What is the password for keystore?

The default password for keystore is "changeit", from Java in general - applicable for both Oracle and AIX Java. Therefore, Informatica too makes use of default "changeit" as password.

How do I change my keystore password?

You can change the default keystore password as follows: Change the keystore password in the keystore using the following command: $ keytool -storepasswd -keystore /path/to/security/keystore. jceks -storetype JCEKS -storepass 'changeit' -new 'newPassword'

What is Keytool password?

The default server password is changeit . The keytool application is included in the Java developer kit and is not part of IBM® UrbanCode Deploy. The default server alias is server .


1 Answers

What I found is, that when you specify -storepass as a parameter, validation is not active.

like image 150
Betlista Avatar answered Sep 21 '22 18:09

Betlista