title: Error Importing SSL certificate : Not an X.509 Certificate
body: <p>I am trying to Update the SSL certificate in accordance  with <a href="https://dev.twitter.com/discussions/533" rel="noreferrer">this post</a> 
  . </p>
  
  <p>I am noob in certificates, so i followed <a href="http://www.coderanch.com/t/436858/Security/Certificate-configure-it-cacerts-file" rel="noreferrer">this guide</a>. But, when i enter </p>
  
  <pre><code>keytool -keystore mycacerts -storepass changeit -importcert -file "C:\Users\Noks\Desktop\cacerts.pem" -v
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>keytool error: java.lang.Exception: Input not an X.509 certificate
  java.lang.Exception: Input not an X.509 certificate
          at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:1913)
          at sun.security.tools.KeyTool.doCommands(KeyTool.java:818)
          at sun.security.tools.KeyTool.run(KeyTool.java:172)
          at sun.security.tools.KeyTool.main(KeyTool.java:166)
  </code></pre>
  
  <p>How do i fix this?</p>