title: Java keytool - illegal option deststorepass:file
body: <p>Thanks for your time. I'm trying to create a java keystore from a PKCS12 file. </p>
  
  <p>This has worked before, but I've done some work to remove password visibility from the command line, using the command <code>keytool -importkeystore -deststorepass:file ...</code></p>
  
  <p>This functionality is apparently available in Java > 7:
  <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/keytool.html" rel="nofollow">http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/keytool.html</a></p>
  
  <blockquote>
    <p><strong>-storepass[:env|:file] argument</strong> Note: All other options that require passwords, such as -keypass, -srckeypass, -destkeypass -srcstorepass, and -deststorepass, accept the env and file modifiers. (Remember to separate the password option and the modifier with a colon, (:).)</p>
  </blockquote>
  
  <p>but for some reason I get the message: <code>Illegal option:  -deststorepass:file</code></p>
  
  <p>Does anyone please know what I am doing wrong here, or how to correctly use the keytool command with the :file modifier?</p>