title: Store own made key using KeyStore -Java
body: <p>I have a simple RSA algorithm based on the basic technique of Clifford Cocks. I have it all working but I need to store my private and public key in the KeyStore so that a Server and a Client can share files using the keys.</p>
  
  <p>I did some research and I found out about the command 'keytool' but it creates the key for you using either RSA or DES, and I do not know how to use it to store my own keys. Is there any way to solver this?</p>
  
  <p>Or how can this problem be solved using the KeyStore class?</p>
  
  <p>Thanks.</p>
  
  <p>PD: The keys are stored in BigIntegers right now. But I dont think that matters.</p>