title: jdk keytool exception while importing my certificate
body: <p>I am following these tutorials.</p>
  
  <p><a href="https://www.mulesoft.com/tcat/tomcat-ssl" rel="nofollow">https://www.mulesoft.com/tcat/tomcat-ssl</a></p>
  
  <p><a href="https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html" rel="nofollow">https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html</a></p>
  
  <p>but whenever I try to execute this command</p>
  
  <p><code>keytool -import -alias tomcat -keystore &lt;your_keystore_filename&gt; -file &lt;your_certificate_filename&gt;</code></p>
  
  <p>I gave your_certificate_filename as (absolute path)JAVA_HOME\bin\mycert.csr</p>
  
  <p>I get exception</p>
  
  <p><code>keytool error: java.security.cert.CertificateParsingException:java.io.IOExcepti
  on: ObjectIdentifier() -- data isn't an object ID (tag = 49)</code></p>
  
  <p>I have downloaded : Verisign.com trial certificate : <a href="http://www.verisign.com/support/verisign-intermediate-ca/Trial_Secure_Server_Root/index.html" rel="nofollow">http://www.verisign.com/support/verisign-intermediate-ca/Trial_Secure_Server_Root/index.html</a></p>
  
  <p>then <code>keytool -import -alias root -keystore &lt;your_keystore_filename&gt;
      -trustcacerts -file &lt;filename_of_the_chain_certificate&gt;</code>
  this is I guess root certificate and this executed without ant errors.
  and then tried above cmd for importing my new certificate</p>
  
  <p>*I am running my cmd prompt in admin mode</p>
  
  <p>What is wrong?</p>