{"_id":"56d1f33d00a2a70b00b365e6","parentDoc":null,"project":"5526c95cf69851170038b48f","category":{"_id":"56d1f33900a2a70b00b36591","__v":1,"version":"56d1f33700a2a70b00b3658e","pages":["56d1f33d00a2a70b00b365e3","56d1f33d00a2a70b00b365e4","56d1f33d00a2a70b00b365e5","56d1f33d00a2a70b00b365e6","56d1f33d00a2a70b00b365e7"],"project":"5526c95cf69851170038b48f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-04T20:08:13.640Z","from_sync":false,"order":1,"slug":"security-profiles","title":"Security Profiles"},"user":"5526d4bb4a7ac121004c605c","__v":0,"version":{"_id":"56d1f33700a2a70b00b3658e","project":"5526c95cf69851170038b48f","__v":2,"createdAt":"2016-02-27T19:04:23.946Z","releaseDate":"2016-02-27T19:04:23.946Z","categories":["56d1f33900a2a70b00b3658f","56d1f33900a2a70b00b36590","56d1f33900a2a70b00b36591","56d1f33900a2a70b00b36592","56d1f33900a2a70b00b36593","56d1f33900a2a70b00b36594","56d1f33900a2a70b00b36595","56d1f33900a2a70b00b36596","56d1f33900a2a70b00b36597","56d1f33900a2a70b00b36598","56d1f33900a2a70b00b36599","56d1f33900a2a70b00b3659a","571f9497ada30c34003b7cee"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"beta","version_clean":"2.0.0-beta","version":"2.0.0-beta"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-12-04T20:11:17.841Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"* If you don't already have it on your computer, download and install the [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).\n* Use `keytool`, which is shipped with the JDK, to generate a keystore. The alias is the name of your key within the keystore; just name it something memorable.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nIn the above example, keytool will ask you to enter a **keystore password**, some information about you and your organization (for the certificate), and a **key password** (which you can optionally have be the same as the keystore password, and then it will generate a `my-release-key.keystore` file with an **alias** by the name of `alias_name` (you may want to customize this).\n\nThe **keystore** file, **keystore password**, key **alias**, and **key password** are the four credentials you'll need to create an entry for Android in a Security Profile.\n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Success!\",\n  \"body\": \"Congratulations! You now have a keystore file, which is used to attach Android Credentials to a security profile.\"\n}\n[/block]","excerpt":"","slug":"android-build-profiles","type":"basic","title":"Android Build Profiles"}

Android Build Profiles


* If you don't already have it on your computer, download and install the [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html). * Use `keytool`, which is shipped with the JDK, to generate a keystore. The alias is the name of your key within the keystore; just name it something memorable. [block:code] { "codes": [ { "code": "keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000", "language": "shell" } ] } [/block] In the above example, keytool will ask you to enter a **keystore password**, some information about you and your organization (for the certificate), and a **key password** (which you can optionally have be the same as the keystore password, and then it will generate a `my-release-key.keystore` file with an **alias** by the name of `alias_name` (you may want to customize this). The **keystore** file, **keystore password**, key **alias**, and **key password** are the four credentials you'll need to create an entry for Android in a Security Profile. [block:callout] { "type": "success", "title": "Success!", "body": "Congratulations! You now have a keystore file, which is used to attach Android Credentials to a security profile." } [/block]