java.security.UnrecoverableKeyException: Cannot recover key

Today i ran into a problem while developing a jsp page for a customer. It uses Tomcat with keystore for ssl.

When starting Tomcat, i recived the following errormessage in the logfile.
java.security.UnrecoverableKeyException: Cannot recover key

I found that the error occurs when the keystore and key-entry passwords are different. To resolve this problem, you have to remove all the old certificate and request files. You must generate a new keystore, key-entry and CSR. While recreating the keystore, use the same password for the keystore and the key-entry and the problem should be resolverd.

0
« »

© 2019 Tobias Wallenqvist. Tema av Anders Norén.