title: How to import certificate to keystore on mac os
body: <p>I've downloaded a certificate from a server with cer extension. And tried to import it to keystore with the following command</p>
  <pre><code>keytool -import -trustcacerts -alias https -file MyCrtFile.crt -keystore /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home/lib/security/cacerts
  </code></pre>
  <p>And then I try to find it with command</p>
  <pre><code>keytool -list -v -keystore /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home/lib/security/cacerts -alias https
  </code></pre>
  <p>But getting an exception</p>
  <pre><code>keytool error: java.lang.Exception: Keystore file does not exist: ...
  </code></pre>
  <p>What am I doing wrong ?</p>