Import existing private key into BKS Keystore
<p>I have a key pair generated by openssl in the following way</p>

<blockquote>
  <p>openssl genrsa -out private_key.pem 2048</p>
</blockquote>

<p>The I convert it to DER format as follow</p>

<blockquote>
  <p>openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key.pem \
  -out private_key.der -nocrypt</p>
</blockquote>

<p>And now I want to import it in android but I don't want import it as it I want to protect it within a keystore.</p>

<p>So my question is how can I import a existing key into BKS keystore using keytool?</p>

<p>Thanks</p>