Category: Maven Gene De Lisa @ 12:19 pm —
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Ever get this?

[INFO] [keytool:genkey]
[WARNING] Enter keystore password:  Keystore password is too short - must be at least 6 characters

You probably have something like this:

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>keytool-maven-plugin</artifactId>
<configuration>
<keystore>${basedir}/target/keystore</keystore>
<dname>cn=Gene De Lisa, ou=Devel, L=Philadelphia, ST=PA, o=Rockhopper, c=US</dname>
<alias>mykey</alias>
<keypass>validpassword</keypass>
<storepass>validpassword</storepass>
<storetype>pkcs12</storetype>
<verbose>true</verbose>
</configuration>
</plugin>

See that dname element? If you reformatted your code in Eclipse perhaps it was split over two lines. It has to be on a single line. So, you problem has nothing to do with the password!

1 person has left a comment

#1

[…] to point the SSL/TLS Connector to the new keystore file like this: …Rockhopper Blog | Java development tips maven signing tidbit[INFO] [keytool:genkey] [WARNING] Enter keystore password: Keystore password is too short - must be […]

keystore - StartTags.com wrote on January 28, 2010 - 7:07 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.