diff --git a/Documentation/guides/BuildProcess.md b/Documentation/guides/BuildProcess.md index eb996898895..6aab6cbb4b8 100644 --- a/Documentation/guides/BuildProcess.md +++ b/Documentation/guides/BuildProcess.md @@ -783,6 +783,13 @@ To use the keystore generated above, use the property group: keystore.alias password +- **AndroidDebugKeyAlgorithm** – Specifies the default + algorithm to use for the `debug.keystore`. It defaults to + `RSA`. + +- **AndroidDebugKeyValidity** – Specifies the default + validity to use for the `debug.keystore`. It defaults to + `10950` or `30 * 365` or `30 years`. diff --git a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets index 4b633b48140..a9561bdd5d3 100755 --- a/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets +++ b/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets @@ -240,6 +240,9 @@ Copyright (C) 2011-2012 Xamarin. All rights reserved. 26.1.1 16.1 + RSA + 10950 + None @@ -2515,6 +2518,8 @@ because xbuild doesn't support framework reference assemblies. KeyAlias="androiddebugkey" KeyPass="android" StorePass="android" + KeyAlgorithm="$(AndroidDebugKeyAlgorithm)" + Validity="$(AndroidDebugKeyValidity)" ToolPath="$(KeytoolToolPath)" ToolExe="$(KeytoolToolExe)" Command="-genkeypair"