title: How to create a certificate chain using keytool?
body: <p>I want to create certificate chain in java as follows:</p>
  
  <pre><code>ca.mycompany.com
  |--asia.mycompany.com
     |--india.mycompany.com
  </code></pre>
  
  <p>where ca.mycompany.com is a root certificate (self signed).</p>
  
  <p>I know this is possible with OpenSSL. But is it possible to to achieve this with keytool?</p>
  
  <p>If not, can I achieve this with Mozilla NSS library?</p>