title: Error generating SSL private key - Heroku - OpenSSL - Rails
body: <p>I am following the instructions on <a href="https://devcenter.heroku.com/articles/ssl-endpoint" rel="nofollow">https://devcenter.heroku.com/articles/ssl-endpoint</a> but getting stuck on generating private key. It says to generate a private key '$ openssl genrsa -des3 -out server.pass.key 2048' so I'm typing into rails command line</p>
  
  <pre><code>$ heroku run openssl genrsa -des3 -out server.pass.key 2048
  </code></pre>
  
  <p>This seems to work and I can enter a passphrase twice (but there is no confirmation message)</p>
  
  <p>The next stage is to type the following "$ openssl rsa -in server.pass.key -out server.key" - so that the private key can be stripped of its passphrase. So:</p>
  
  <pre><code>$ heroku run openssl rsa -in server.pass.key -out server.key
  
  But here I get the following error:
  Error opening Private key server.pass.key
  2:error:02001002:system library:fopen no such file or directory:bss_file.c:356:f
  open('server.pass.key','r')
  2:error:20074002:BIO routines:FILE CTRL:system lib:bss_file.c:358:
  Unable to load private key
  </code></pre>
  
  <p>Any ideas? Thanks.</p>
  
  <p>(by the way I already have site-wide SSL enabled on the app, using heroku's certificate. I am trying to change to my own SSL certificate for my own domain).</p>