title: Importing cert and pkey to jks file
body: <p>We have an application1 that is working with openssl and have a pkey and cert file (RSA) that clients are able to connect (handshake complete).</p>
  
  <p>We have another application2 that does not use openssl but Java keytool and jks file. Client are not able to connect to this application (negotiation fails). We thought that the reason has to do with the fact that clients need to negotiate with application1's pkey and cert, so we added them to the jks file (using the procedure here <a href="http://blog.jgc.org/2011/06/importing-existing-ssl-keycertificate.html" rel="nofollow">http://blog.jgc.org/2011/06/importing-existing-ssl-keycertificate.html</a>). - maybe we should have split it to two entries - one in the trust file and one in the keystore file.
  Now application2 (uses Grizzly framework) fails to initiate and have the following exception: java.lang.IllegalStateException: KeyManagerFactoryImpl is not initialized.
  We are using jdk1.7.</p>
  
  <p>Can anyone help?
  Thanks a lot</p>