title: Illegal option: -ext Try keytool
body: <p>I am using <code>java version "1.7.0_60"</code> in linux machine but when trying to run <code>-keytool</code> command with <code>-ext</code> i am getting </p>
  
  <blockquote>
    <p>Illegal option:  -ext Try keytool -help</p>
  </blockquote>
  
  <p>Can someone please tell me its due to java version issue or something else?</p>
  
  <p>I check <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/keytool.html" rel="nofollow">Oracle site</a> the have mentioned <code>-ext</code> already there in <code>Java7</code></p>
  
  <p><strong>EDIT:-</strong></p>
  
  <p>Here is the command</p>
  
  <pre><code>keytool -genkey -dname "CN=apptest2, OU=A, O=te ha,L=Delhi, S=Delhi, C=IN" -alias "ssocertificate" -keyalg RSA -keypass P@ssw0rd -keystore /etc/cas/certificate/portal.keystore –storepass storepass -keyalg "RSA" -ext SAN=dns:apptest2,ip:105.210.22.145
  </code></pre>