title: How do I get into a non-password protected Java keystore or change the password?
body: <p>I'm trying to import a trusted certificated into the <a href="http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services" rel="noreferrer">Java cacerts keystore</a>, but I have a problem. I tried to list existing trusted certificates and it seems that the keystore isn't password protected. </p>
  
  <pre><code>$ keytool -list -keystore cacerts
  Enter keystore password:
  
  *****************  WARNING WARNING WARNING  *****************
  * The integrity of the information stored in your keystore  *
  * has NOT been verified!  In order to verify its integrity, *
  * you must provide your keystore password.                  *
  *****************  WARNING WARNING WARNING  *****************
  
  Keystore type: JKS
  Keystore provider: SUN
  
  Your keystore contains 76 entries
  </code></pre>
  
  <p>I tried to import a trusted certificate:</p>
  
  <pre><code>$ keytool -importcert -alias "JiraCert" -file /root/c9ssl.crt -keystore /etc/java-6-sun/security/cacerts
  Enter keystore password:  
  Keystore password is too short - must be at least 6 characters
  Enter keystore password:  
  Keystore password is too short - must be at least 6 characters
  Enter keystore password:  
  Keystore password is too short - must be at least 6 characters
  Too many failures - try later
  </code></pre>
  
  <p>I also tried to change the password from "none" to something:</p>
  
  <pre><code>$ keytool -storepasswd -keystore cacerts.back
  Enter keystore password:
  Keystore password is too short - must be at least 6 characters
  Enter keystore password:
  Keystore password is too short - must be at least 6 characters
  Enter keystore password:
  Keystore password is too short - must be at least 6 characters
  Too many failures - try later
  </code></pre>