Tomcat-keystore is tampered with, or password is incorrect

Source: Internet
Author: User

I have previously configured SSL in Tomcat, and then I rebuilt a keystore file, and of course the password is different from the previous one.

So when I configure the new KeyStore and start Tomcat from Eclipse, the console complains.

severe:failed to load KeyStore type JKS with path 
C:\keystore due to KeyStore is tampered with, or password is Inco Rrect
 
Java.io.IOException:Keystore is tampered with, or password is incorrect at
        Sun.security.provider.JavaKeyStore.engineLoad (javakeystore.java:771) at
        sun.security.provider.javakeystore$ Jks.engineload (javakeystore.java:38) at
        java.security.KeyStore.load (keystore.java:1185)
        //...
        At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:289) at
        Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:414)
caused by: Java.security.UnrecoverableKeyException:Password verification failed at
        Sun.security.provider.JavaKeyStore.engineLoad (javakeystore.java:769) ...
        More
Solution:

Enter Directory d:\...\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf

Replaces the server.xml of the current directory with the new Tomcat configuration file Server.xml.

Restart Tomcat and it's OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.