Skip to content

Commit c846e66

Browse files
puiterwijkvlsi
authored andcommitted
Add explanation to UnrecoverableKeyException
Unrecoverable keys after opening the keystore could be a consequence of the key having a different password than the keystore itself. This could cause some people to spend a lot of time figuring out what's going on, so let's just give them a quick heads up of a potential (common?) reason for this error. This could be fixed by running "keytool -keypasswd".
1 parent f9fe8e4 commit c846e66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/src/main/java/org/apache/jmeter/util/SSLManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ protected synchronized JmeterKeyStore getKeyStore() {
157157
} catch (IOException e) {
158158
log.error("Can't load keystore '{}'. Wrong password?", fileName, e);
159159
} catch (UnrecoverableKeyException e) {
160-
log.error("Can't recover keys from keystore '{}'", fileName, e);
160+
log.error(
161+
"Can't recover keys from keystore '{}'. Is key password different from keystore password?",
162+
fileName,
163+
e);
161164
} catch (NoSuchAlgorithmException e) {
162165
log.error("Problem finding the correct algorithm while loading keys from keystore '{}'", fileName, e);
163166
} catch (CertificateException e) {

0 commit comments

Comments
 (0)