title: issue creating .PFX file using keytool.exe
body: <p>I've just downloaded Java and have created a keystore file (.ks) and certificate (.cer), and now want to create a .PFX using the .ks file. However, when I type the below at a command prompt, i get the error message shown.</p>
  
  <pre><code>c:\Program Files\Java\jre7\bin&gt;keytool.exe -importkeystore -srckeystore C:\clien
  ts\Client.ks -srcstorepass Password1 -destkeystore c:\private key file\Testfile.pf
  x -deststorepass Password1 -deststoretype PKCS12 -srcalias Testfile
  Illegal option:  key
  keytool -importkeystore [OPTION]...
  
  Imports one or all entries from another keystore
  
  Options:
  
   -srckeystore &lt;srckeystore&gt;            source keystore name
   -destkeystore &lt;destkeystore&gt;          destination keystore name
   -srcstoretype &lt;srcstoretype&gt;          source keystore type
   -deststoretype &lt;deststoretype&gt;        destination keystore type
   -srcstorepass &lt;arg&gt;                   source keystore password
   -deststorepass &lt;arg&gt;                  destination keystore password
   -srcprotected                         source keystore password protected
   -srcprovidername &lt;srcprovidername&gt;    source keystore provider name
   -destprovidername &lt;destprovidername&gt;  destination keystore provider name
   -srcalias &lt;srcalias&gt;                  source alias
   -destalias &lt;destalias&gt;                destination alias
   -srckeypass &lt;arg&gt;                     source key password
   -destkeypass &lt;arg&gt;                    destination key password
   -noprompt                             do not prompt
   -providerclass &lt;providerclass&gt;        provider class name
   -providerarg &lt;arg&gt;                    provider argument
   -providerpath &lt;pathlist&gt;              provider classpath
   -v                                    verbose output
  
  Use "keytool -help" for all available commands
  </code></pre>
  
  <p>Can anyone see what I'm doing wrong?</p>
  
  <p>I'm using 64bit Windows Server 2008 R2.</p>
  
  <p>Many thanks</p>
  
  <p>Paul</p>