title: How do I extract the Subject Alternative Name from a CSR by just using the openssl command?
body: <p>I would need to extract the Subject Alternative Name from a CSR. Is there any way I can extract this other than using the "-text" in openssl req -in test.csr -text -noout? (Maybe similar with the -subject parameter?)</p>
  
  <p>I noticed that the SAN is sometimes formatted as "email" and so grep DNS doesn't actually work well. Is there any command you can recommend which will work to get the SubjAltName correctly?</p>