Affects Version/s: 4.2.2, 4.2.3, 4.2.4, 4.3 Alpha1, 4.3 Beta1, 4.3 Final
Component/s: HttpClient (classic)
Environment:Java System Property javax.net.ssl.trustStore is set, but javax.net.ssl.trustStorePassword is not.
When the Java System property "javax.net.ssl.trustStore" is specified, but "javax.net.ssl.trustStorePassword" is not, requests are encountering the exception listed below. This is reproducible in version 4.2.1 and looking at the relevant code, it should also be reproducible in all other versions as well.
This appears to be fixed if the password value for loading the keystore falls back to null instead of the empty string. I'm not sure if this problem also exists with the "javax.net.ssl.keyStore" logic as well, but I suspect it does.
The workaround is to set the "javax.net.ssl.trustStorePassword" appropriately, assuming that you know the correct value.
Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
... 37 more
Caused by: java.security.UnrecoverableKeyException: Password verification failed
... 41 more