{"id":1303,"date":"2020-09-16T13:56:35","date_gmt":"2020-09-16T01:56:35","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=1303"},"modified":"2020-11-17T16:23:15","modified_gmt":"2020-11-17T03:23:15","slug":"importing-a-pkcs12-key-store-to-java-key-store","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=1303","title":{"rendered":"Importing a PKCS12 Key Store to Java Keystore"},"content":{"rendered":"<p>Use the following command in importing a pkcs12 keystore to Java keystore:<\/p>\n<blockquote><p>The keytool is normally found in $JAVA_HOME\/jre\/bin (i.e. the $JAVA_HOME variable is where you've installed JDK).<\/p><\/blockquote>\n<pre style=\"white-space: pre;\">keytool -importkeystore -v -srckeystore &lt;SRC_KEYSTORE_FILE&gt; -srcstoretype pkcs12 -destkeystore &lt;DEST_KEYSTORE_FILE&gt; -deststoretype JKS -storepass &lt;KEYSTORE_PASSWORD&gt;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><strong>Token<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>SRC_KEYSTORE_FILE<\/td>\n<td>The source keystore file <em>(i.e. normally with the extension pfx)<\/em> of type pkcs12.<\/td>\n<\/tr>\n<tr>\n<td>DEST_KEYSTORE_FILE<\/td>\n<td>The destination keystore file <em>(i.e. normally with the extension jks)<\/em> of type jks.<\/td>\n<\/tr>\n<tr>\n<td>KEYSTORE_PASSWORD<\/td>\n<td>The password for accessing the DEST_KEYSTORE_FILE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Use the following command in importing a pkcs12 keystore to Java keystore: The keytool is normally found in $JAVA_HOME\/jre\/bin (i.e. the $JAVA_HOME variable is where you&#8217;ve installed JDK). keytool -importkeystore -v -srckeystore &lt;SRC_KEYSTORE_FILE&gt; -srcstoretype pkcs12 -destkeystore &lt;DEST_KEYSTORE_FILE&gt; -deststoretype JKS -storepass &lt;KEYSTORE_PASSWORD&gt; Token Description SRC_KEYSTORE_FILE The source keystore file (i.e. normally with the extension pfx) of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,23],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1303"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1303"}],"version-history":[{"count":4,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1303\/revisions"}],"predecessor-version":[{"id":1397,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/1303\/revisions\/1397"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}