{"id":176,"date":"2025-07-23T07:43:52","date_gmt":"2025-07-23T07:43:52","guid":{"rendered":"https:\/\/documentation.iqonic.design\/prokit-flutter\/?p=176"},"modified":"2025-07-28T09:40:56","modified_gmt":"2025-07-28T09:40:56","slug":"how-to-generate-new-jks-keystore","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/how-to-generate-new-jks-keystore\/","title":{"rendered":"How To Generate New JKS\/Keystore"},"content":{"rendered":"<div class=\"nolwrap\">\n<h2 class=\"wp-block-heading\"><strong>Method 1 \u2013 Using Terminal<\/strong><\/h2>\n\n\n\n<p>1.Method 1 \u2013 Using Terminal<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">   keytool -genkey -v -keystore android\/&lt;JKS FILE NAME&gt;.jks -alias &lt;ALIAS NAME&gt; -keyalg RSA -keysize 2048 -validity 10000<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Example command:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">  keytool -genkey -v -keystore android\/example.jks -alias example -keyalg RSA -keysize 2048 -validity 10000<\/pre>\n\n\n\n<p>Here,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JKS File Name: example<\/li>\n\n\n\n<li>Alias Name: example<\/li>\n<\/ul>\n\n\n\n<p>The command will generate a JKS file in your android directory. The validity of the keystore certificate is set to 10,000 days. If you don\u2019t add \u201c-validity&nbsp;<code>&lt;NumberOfDays&gt;<\/code>\u201c, the default value will be 90 days.<\/p>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;If you encounter an error like \u2018Command \u2018keytool\u2019 not found\u2019, you\u2019ll also receive a suggestion to install keytool. Follow the suggestion and execute the command to install \u2018keytool\u2019.<\/p>\n\n\n\n<p>After installing keytool, run the \u2018keytool\u2019 command again and complete the process again.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS1.png\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS1.png\" alt=\"\" class=\"wp-image-362\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Method 2 \u2013 Using Android Studio<\/strong><\/h2>\n\n\n\n<p>1.Open your Android module. Wait for a while to complete the import process for the \u2018android\u2019 Gradle project.<\/p>\n\n\n\n<p>2. Open the&nbsp;<strong>build<\/strong>&nbsp;menu from the Menu bar and Select&nbsp;<strong>Generate Signed Bundle\/APK<\/strong>.&nbsp;<strong>Choose APK<\/strong>&nbsp;and click&nbsp;<strong>Next<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS2.png\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS2.png\" alt=\"\" class=\"wp-image-363\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS3.png\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS3.png\" alt=\"\" class=\"wp-image-364\" \/><\/a><\/figure>\n\n\n\n<p>3. In the resulting dialog, for the Key store path field, choose&nbsp;<strong>Create New<\/strong>&nbsp;to open the&nbsp;<strong>New Key Store<\/strong>&nbsp;dialog.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS4.png\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS4.png\" alt=\"\" class=\"wp-image-365\" \/><\/a><\/figure>\n\n\n\n<p>When you click on&nbsp;<strong>Create New<\/strong>&nbsp;it will open a dialog to choose keystore file.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose the path where you want to store your&nbsp;<strong>keystore<\/strong>\/<strong>jks<\/strong>&nbsp;file. In this example we\u2019re storing it at&nbsp;<strong>android<\/strong>&nbsp;directory of Project.<\/li>\n\n\n\n<li>Just Add keystore filename in&nbsp;<strong>File name<\/strong>&nbsp;field.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS5.png\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS5.png\" alt=\"\" class=\"wp-image-366\" \/><\/a><\/figure>\n\n\n\n<p>4. Add&nbsp;<strong>Keystore Password<\/strong>,&nbsp;<strong>Key Alias<\/strong>&nbsp;,&nbsp;<strong>Alias Password<\/strong>. Add Details in Certificate section then press&nbsp;<strong>Ok<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS6.png\"><img decoding=\"async\" src=\"https:\/\/documentation.iqonic.design\/kivicare-laravel\/wp-content\/uploads\/sites\/10\/2025\/04\/Generate_JKS6.png\" alt=\"\" class=\"wp-image-367\" \/><\/a><\/figure>\n\n\n\n<p><strong>INFO<\/strong><\/p>\n\n\n\n<p>These\u00a0<strong>Keystore File Path<\/strong>,<strong>Keystore Password<\/strong>,\u00a0<strong>Key Alias<\/strong>\u00a0,\u00a0<strong>Alias Password<\/strong>, you\u2019ve to set in keystore.properties file which will be in\u00a0<strong>android<\/strong>\u00a0directory of project. If it\u2019s not available then just right click on android directory \u2192 New \u2192 File and name it as \u2018key.properties\u2019. Then you can perform steps mentioned\u00a0<a href=\"https:\/\/documentation.iqonic.design\/prokit-flutter\/how-to-generate-the-sha-in-android-studio\/\">here<\/a><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Method 1 \u2013 Using Terminal 1.Method 1 \u2013 Using Terminal keytool -genkey -v -keystore android\/&lt;JKS FILE NAME&gt;.jks -alias &lt;ALIAS NAME&gt; -keyalg RSA -keysize 2048 -validity 10000 keytool -genkey -v -keystore android\/example.jks -alias example -keyalg RSA -keysize 2048 -validity 10000 Here, The command will generate a JKS file in your android directory. The validity of the [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":170,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-prokit-flutter"],"featured_image_src":null,"author_info":{"display_name":"flutteradminiq","author_link":"https:\/\/documentation.iqonic.design\/prokit-flutter\/author\/flutteradminiq\/"},"children":[],"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":3,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"predecessor-version":[{"id":343,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/176\/revisions\/343"}],"up":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/posts\/170"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/prokit-flutter\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}