Cannot recover key

 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/p/6470150.html