title: How to configure amazon issued free certificate to nginx.config
body: <p>I have installed <code>nginx</code> server in <code>Amazon Linux 2</code> environment. During creation Elastic Load Balancer I created an free certificate by Amazon. Now, I want to access my server through <code>https</code> (port <code>443</code>). How can I configure this <code>SSL</code> certificate in <code>nginx.conf</code>?</p>
  <p>SSL configuration in nginx.conf is now commented. I saw it contains two lines like:</p>
  <pre><code> #        ssl_certificate &quot;/etc/pki/nginx/server.crt&quot;;
   #        ssl_certificate_key &quot;/etc/pki/nginx/private/server.key&quot;;
  </code></pre>
  <p>Now, what is the location of Amazon certificate and key file location?</p>