title: keytool error: java.io.FileNotFoundException: C:\cacerts (Access is denied)
body: <p>I am on Windows 10 with JRE8 and the command I'm using is:</p>
  
  <pre><code>C:\Program Files\Java\jre1.8.0_60\bin&gt;keytool -keystore "C:\cacerts" -storepass changeit -importcert -file "C:\Users\MyUser\Desktop\sf.cer" -alias Symantec_Secure_Server_Class_3
  </code></pre>
  
  <p>Here's what I've tried so far:</p>
  
  <ol>
  <li>Gave the cacerts file full access to my user (eventhough I am an admin)</li>
  <li>Ran keytool as System Administrator in cmd</li>
  <li>Put cacerts in different locations (even tried C:\cacerts)</li>
  </ol>
  
  <p>I keep getting the same error:</p>
  
  <blockquote>
    <p>Certificate was added to keystore keytool error:
    java.io.FileNotFoundException: C:\cacerts (Access is denied)</p>
  </blockquote>
  
  <p>What else can I do to import this certificate into my cacerts file?</p>