java.security.UnrecoverableKeyException: Cannot recover key 处理
This exception may result from the fact that you had provided a key password that was different from the keystore password
此错误由调用getKey(alias,aliaspassword)函数抛出。
可能原因为aliaspassword的密码不正确,
注意
aliaspassword必须是aias数字证书的密码。而不是keystore的密码。
转载于:https://www.cnblogs.com/lanzhi/archive/2008/08/19/6470149.html