web stats
Keystore was tampered with, or password was incorrect error while starting Mirth - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-28-2019, 04:48 AM
darshan darshan is offline
What's HL7?
 
Join Date: Nov 2019
Posts: 1
darshan is on a distinguished road
Default Keystore was tampered with, or password was incorrect error while starting Mirth

I am facing an exception while start/restarting mirth servers. Below are the setup details with exception seen in logs.

Setup: Two Mirth Connect(v3.8.1) servers connecting to single MySQL(v5.7) database. Note both these servers are running on separate VMs and are still using default keystore password from mirth.properties file.

Exception:
ERROR 2019-11-28 07:06:37,614 [Main Server Thread] com.mirth.connect.server.controllers.DefaultConfig urationController: Could not initialize security settings.
java.io.IOException: Keystore was tampered with, or password was incorrect
at com.sun.crypto.provider.JceKeyStore.engineLoad(Jce KeyStore.java:879)
at java.security.KeyStore.load(KeyStore.java:1445)
at com.mirth.connect.server.controllers.DefaultConfig urationController.initializeSecuritySettings(Defau ltConfigurationController.java:1102)
at com.mirth.connect.server.Mirth.startup(Mirth.java: 208)
at com.mirth.connect.server.Mirth.run(Mirth.java:154)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
... 5 more
WARN 2019-11-28 07:06:41,150 [Main Server Thread] com.mirth.connect.server.Mirth: Could not start web server.
java.io.IOException: Keystore was tampered with, or password was incorrect
at com.sun.crypto.provider.JceKeyStore.engineLoad(Jce KeyStore.java:879)
at java.security.KeyStore.load(KeyStore.java:1445)
at com.mirth.connect.server.MirthWebServer.createSSLC onnector(MirthWebServer.java:370)
at com.mirth.connect.server.MirthWebServer.<init>(Mir thWebServer.java:150)
at com.mirth.connect.server.Mirth.startWebServer(Mirt h.java:385)
at com.mirth.connect.server.Mirth.startup(Mirth.java: 265)
at com.mirth.connect.server.Mirth.run(Mirth.java:154)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
... 7 more
Reply With Quote
  #2  
Old 12-02-2019, 04:36 PM
peterl peterl is offline
Mirth Employee
 
Join Date: Mar 2013
Posts: 11
peterl is on a distinguished road
Default

This error occurs when the value of keystore.storepass does not match the password used to create the keystore file in the appdata folder.

When starting Connect for the first time (meaning the keystore has not been created yet), if keystore.storepass and keystore.keypass are set to the default values, Connect will set them to random values and use those values when creating the keystore. Is it possible that your keystore files were generated with these random values, but you reverted mirth.properties back to the default values afterward?

In any case, the default password does not seem to be correct for your keystores. In the worst case, you may need to remove your keystore.jks files (I would back them up just in case), and then restart Connect to recreate them. Then you'll need to re-do any additional keystore configuration that you may have done before.
Reply With Quote
Reply

Tags
keystore, mirth 3.8.1

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation