Solved

java and SSL with Tomcat - Keystore was tampered with, or password was incorrect

Posted on 2004-10-04
3
3,215 Views
Last Modified: 2013-11-24
Hi,

I've just created all key store and certificates for ssl with tomcat. When i try to run my client i'm getting the following error

Oct 4, 2004 5:02:19 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  Protocol handler start failed: java.io.IOException: Keystore was tampered with, or password was incorrect
      at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1529)
      at org.apache.catalina.core.StandardService.start(StandardService.java:489)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Oct 4, 2004 5:02:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12041 ms

I've double checked my code and the password is correct so if anyone has any ideas what else could be the problem and how to fix it  please let me know.

Thanks,
Suzy
0
Comment
Question by:fyness
3 Comments
 
LVL 6

Accepted Solution

by:
dorothy2 earned 125 total points
ID: 12219669
(1) You can use keytool to list the keys in the keystore. I can't remember whether it lists the password as one of  the attributes. I would try to independently verify the password.

(2) Unfortunately, it may take less time to blow away the keystore and recreate it and the keys than to puzzle over the error. I would recommend that you use a batch file or Java to create the keys rather than doing it interactively; that way you have a means of looking back at exactly what was entered.

Good luck,

Dorothy
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question