May 26, 2011 at 4:53 PM
Edited May 26, 2011 at 5:03 PM
When we installed our app to a new Mac, we get the following error. Our app runs fine on the Mac that generated the key. What steps did we miss on the new Mac?
It appears that it found the keystore file from the resource path but it could not get the key using the alias? we also ran keytool -list -keystore <our_keystore_file> and it shows that the keystore has the entry with that alias. The alias and
path & keystore name are all passed by the app (same values for both machines).
Caused by: com.microsoft.hsg.HVException: Key not found
The SDK code that returned the expcetion:
KeyStore keystore = KeyStore.getInstance("JKS");
Key key = keystore.getKey(alias, password.toCharArray());
if (key == null)
throw new HVException("Key not found");