title: KeyTool error : java.lang.Exception : Alias does not exist
body: <p>I have sucessfully imported the certificate by below command:</p>
  
  <pre><code>keytool -import -alias "alias-name" -file 
    "C:\somepath\Certificate\portal.cer 
    -keystore C:\Program Files\Java\jdk1.7.0_79\jre\lib\cacerts"
  </code></pre>
  
  <p>Now I am trying to delete the imported certificate with </p>
  
  <pre><code>keytool -delete -alias "alias-name" -keystore 
       "C:\Program Files\Java\jdk1.7.0_79\jre\lib\cacerts" -storepass changeit
  </code></pre>
  
  <p>But I am end with the below error message:</p>
  
  <blockquote>
    <p>KeyTool error : java.lang.Exception : Alias does not exist</p>
  </blockquote>