title: Heroku SSL using self signed certificate
body: <p>Following steps of: <a href="https://devcenter.heroku.com/articles/ssl-endpoint" rel="nofollow">https://devcenter.heroku.com/articles/ssl-endpoint</a>
  I have added SSL Endpoint add-on into my server hosted on Heroku.</p>
  
  <p>Then, I've created a self signed certificate following: 
  <a href="https://devcenter.heroku.com/articles/ssl-certificate-self" rel="nofollow">https://devcenter.heroku.com/articles/ssl-certificate-self</a></p>
  
  <p>At this point I have upload my self-signed cert and private key using:</p>
  
  <pre><code>heroku certs:add server.crt server.key
  </code></pre>
  
  <p>In fact it gaves me: </p>
  
  <pre><code> !    Unable to parse certificate. Please ensure the certificate is in PEM format.
  </code></pre>
  
  <p>But I found a simple solution on Google:</p>
  
  <p><code>openssl rsa -in server.key -out server.key.rsa</code></p>
  
  <p>Then I 've uploaded all:</p>
  
  <pre><code>heroku certs:add server.crt server.key.rsa
  Resolving trust chain... done
  Adding SSL Endpoint to &lt;myapp&gt;... done
  &lt;myapp&gt; now served by wakayama-xxxx.herokussl.com
  Certificate details:
  Common Name(s): &lt;mydomain&gt;
  Expires At:     2016-09-29 11:24 UTC
  Issuer:         /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=&lt;mydomain&gt;
  Starts At:      2015-09-30 11:24 UTC
  Subject:        /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=&lt;mydomain&gt;
  SSL certificate is self signed.
  </code></pre>
  
  <p>So if I ask for my certificates into Heroku I get:</p>
  
  <pre><code>heroku certs:info
  Fetching SSL Endpoint wakayama-xxxx.herokussl.com info for &lt;myapp&gt;... done
  Certificate details:
  Common Name(s): &lt;mydomain&gt;
  Expires At:     2016-09-29 11:24 UTC
  Issuer:         /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=&lt;mydomain&gt;
  Starts At:      2015-09-30 11:24 UTC
  Subject:        /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd/CN=&lt;mydomain&gt;
  SSL certificate is self signed.
  </code></pre>
  
  <p>So seems that all is ok. Except... if I go to wakayama-xxxx.herokussl.com I see the message: "Heroku | No such app", hum, I've guess It should me redirect to my app, but not.</p>
  
  <p>Any ideas?</p>