title: Certificate getting installed as trustedCertEntry instead of PrivateKeyEntry
body: <p>We are trying to import the SSL certificate on Tomcat keystore by using the below command</p>
  
  <pre><code>keytool -import  -alias $HOSTNAME -file $HOSTNAME.cer -keystore keystore
  </code></pre>
  
  <p>The certificate is getting installed but is installed at <code>trustedCertEntry</code>, with this the https connection is not working. Whereas we've seen on other working servers the certificate was installed as <code>PrivateKeyEntry</code>.</p>
  
  <p>How can we install the <code>cer</code> file as <code>PrivateKeyEntry</code>?</p>
  
  <p>Any help or pointers?</p>