Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keystore password for Jetty 7.0 SSL configuration

Trying to setup SSL on jetty 7.2.2 using these instructions: http://docs.codehaus.org/display/JETTY/How+to+configure+SSL

stuck on 3b: keytool -importkeystore -srckeystore jetty.pkcs12 -srcstoretype PKCS12 -destkeystore $JETTY_HOME/etc/keystore

jetty ships with default keystore at $JETTY_HOME/etc/keystore. I'm asked for password when running that command. I don't know default keystore password.

If I try to replace that keystore with newly created one - I'm getting IOException on jetty startup - keystore is tampered with or password incorrect.

What I'm doing wrong? Or what's default keystore jetty password?

like image 262
Archer Avatar asked Jan 14 '11 12:01

Archer


People also ask

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.


2 Answers

The default password for the keystore that is shipped with jetty is storepwd. But I would highly recommend you follow the steps listed in the How to configure SSL and create your own keystore.

like image 72
user832854 Avatar answered Oct 18 '22 11:10

user832854


I think you just want to overwrite the keystore in etc/keystore with your new one. Then, update the Jetty conf as in Step 4. You will need to obfuscate your keystore password using the org.mortbay.jetty.security.Password class.

like image 29
AngerClown Avatar answered Oct 18 '22 12:10

AngerClown