title: Generate cert.pem and key.pem on Windows
body: <p>I need to generate a <code>cert.pem</code> and <code>key.pem</code> files to encrypt http requests with Nginx.</p>
  
  <p>On Linux, I would execute the following OpenSSL command:</p>
  
  <pre><code>openssl req -x509 -newkey rsa:4096 -nodes \
            -out ./nginx/config/cert.pem \
            -keyout ./nginx/config/key.pem -days 365
  </code></pre>
  
  <p>What would be an equivalent command to generate such files on Windows?
  I have followed this guide but it only generates a <code>.crt</code> and <code>.key</code> files instead.</p>
  
  <p><a href="https://helpcenter.gsx.com/hc/en-us/articles/115015960428-How-to-Generate-a-Self-Signed-Certificate-and-Private-Key-using-OpenSSL" rel="noreferrer">https://helpcenter.gsx.com/hc/en-us/articles/115015960428-How-to-Generate-a-Self-Signed-Certificate-and-Private-Key-using-OpenSSL</a></p>