title: Trouble getting https to work with self signed certificate on aws elastic load balancer
body: <p>I am having issue configuring https on my aws elastic load balancer using a self-signed certificate. After I've done with the set up, making connection to https endpoint does not work. http connection is still fine. </p>
  
  <p>Here's what I did. </p>
  
  <ol>
  <li><p>Generate the self-signed certificate using this command</p>
  
  <p><em>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt</em></p></li>
  <li><p>Verified the key and certificate is working by using this command:</p>
  
  <p><em>openssl rsa -in privateKey.key -check</em><br>
  <em>openssl x509 -in certificate.crt -text -noout</em></p></li>
  <li><p>Convert the certificate the key and the cert into a .pem encoded format to comply with aws certificate requirement. </p>
  
  <p><em>openssl rsa -in privateKey.key -text > private.pem</em></p>
  
  <p><em>openssl x509 -inform PEM -in certificate.crt > public.pem</em></p></li>
  <li><p>Upload the certificate to my elastic load balancer using the the AWS Management Console
  <a href="http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_UpdatingLoadBalancerSSL.html" rel="noreferrer">http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/US_UpdatingLoadBalancerSSL.html</a>. For the private key and public cert value, I used the private.pem and public.pem that were generated in step 3.</p></li>
  <li><p>Go into EBL Listener configuration, added a https listener and used the certificate that I just uploaded. Here's the configuration for the Listener: </p>
  
  <p><img src="https://i.stack.imgur.com/CdZ4a.png" alt="enter image description here"></p></li>
  </ol>
  
  <p>Any thought on what might be wrong in my configuration? Thanks!!!</p>