[mono-android] Cannot sign app - certificate chain not found
jonp at xamarin.com
Mon Feb 27 21:21:15 UTC 2012
On Feb 27, 2012, at 6:03 AM, Steven Pack wrote:
> First, I generated my key:
> keytool -genkey -v -keystore xxxdict-keystore2.keystore -alias -mackey2 -keyalg RSA -keysize 2048 -validity 10000
Is this exactly what you provided? This has an alias of "-mackey2", not "mackey2" (note the leading hyphen).
> Here, ST=There, C=AU
> Enter key password for <-mackey2>
> (RETURN if same as keystore password):
This further suggests that the keystore alias is "-mackey2".
> Tool /usr/bin/jarsigner execution started with arguments: -keystore xxxdictionary-keystore2.keystore -storepass password -keypass password -digestalg SHA1 -sigalg md5withRSA -signedjar bin/Release/com.xxxdictionary.android.lite-Signed-Unaligned.apk obj/Release/android/bin/com.xxxdictionary.android.lite.apk mackey2
The jarsigner command uses "mackey2", not "-mackey2".
You should try updating your <AndroidSigningKeyAlias/> to:
If jarsigner doesn't like that (it might not like a "-"-prefixed alias), then recreate your keystore with an alias that doesn't start with a hyphen.
More information about the Monodroid