title: Import certificate as PrivateKeyEntry
body: <p>I am installing SSL on a Tomcat server and am following these instructions from the issuer <a href="https://knowledge.rapidssl.com/support/ssl-certificate-support/index?page=content&amp;actp=CROSSLINK&amp;id=SO16181">https://knowledge.rapidssl.com/support/ssl-certificate-support/index?page=content&amp;actp=CROSSLINK&amp;id=SO16181</a> and it states:</p>
  
  <pre><code>Verify the following information:
  
  The SSL certificate is imported into the alias with the "Entry Type" of 
  PrivateKeyEntry or KeyEntry.  If not, please import the certificate into 
  the Private Key alias.
  </code></pre>
  
  <p>When I import the certificate (tomcat) I am using:</p>
  
  <pre><code>keytool -import -trustcacerts -alias your_alias_name -keystore your_keystore_filename
  -file your_certificate_filename
  </code></pre>
  
  <p>but when I do so it imports as trustCertEntry</p>
  
  <pre><code>Keystore type: JKS
  Keystore provider: SUN
  
  Your keystore contains 3 entries
  
  primaryca, Jul 26, 2014, trustedCertEntry,
  Certificate fingerprint (SHA1): &lt;snip&gt;
  tomcat, Jul 26, 2014, trustedCertEntry,
  Certificate fingerprint (SHA1):  &lt;snip&gt;
  secondaryca, Jul 26, 2014, trustedCertEntry,
  Certificate fingerprint (SHA1):  &lt;snip&gt;
  </code></pre>
  
  <p>How can I make alias tomcat import as PrivateKeyEntry?</p>