title: How can I generate a self-signed certificate with SubjectAltName using OpenSSL?
body: <p>I am trying to generate a self-signed certificate with OpenSSL with SubjectAltName in it.While I am generating the csr for the certificate, my guess is I have to use v3 extensions of OpenSSL x509.
  I am using :</p>
  
  <pre><code>openssl req -new -x509 -v3 -key private.key -out certificate.pem -days 730
  </code></pre>
  
  <p>Can someone help me with the exact syntax?</p>