Solved

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

Posted on 2004-10-04
3
3,184 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now