Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Alright, here's the deal. I purchased my ssl certificate through godaddy. Here's the steps I followed. I hope this helps someone because this was a pain.</p> <ol> <li>pull up ssh</li> <li>run openssl req -new -newkey rsa:2048 -nodes -keyout mykey.pem -out myreq.pem</li> <li>download using sftp mykey.pem and myreq.pem from the directory you ran the previous command from</li> <li>go to godaddy and enter the contents of myreq</li> <li>download your certificates</li> <li>place your certs in /ect/ssl/certs</li> <li>place your private key mykey.pem into /ect/ssl/private</li> <li><p>configure your vhost in /etc/apache2/sites-available/somesite for example:</p> <pre><code>&lt;VirtualHost *:80&gt; ServerName somesite.com ServerAlias www.somesite.com DocumentRoot /root/public_html/somesite/public &lt;/VirtualHost&gt; &lt;VirtualHost somesite.com:443&gt; DocumentRoot /root/public_html/somesite/public ServerName somesite.com ServerAlias www.somesite.com SSLEngine on SSLCertificateFile /etc/ssl/certs/somesite.com.crt SSLCertificateKeyFile /etc/ssl/private/mykey.pem SSLCertificateChainFile /etc/ssl/certs/gd_bundle.crt &lt;/VirtualHost&gt; </code></pre></li> <li>enable ssh: a2enmod ssl</li> <li>restart server: sudo /etc/init.d/apache2 restart</li> <li>now if I haven't missed anything (it's 3 am) you should be able to pull up your site and enter https</li> <li>go to: <a href="https://github.com/tobmatth/rack-ssl-enforcer" rel="nofollow">https://github.com/tobmatth/rack-ssl-enforcer</a></li> <li>follow the steps there (I set it up so my whole app is https because I couldn't get it to work for individual actions)</li> </ol> <p>I hope this helps. I'll look at this again when I wake up to make sure I didn't miss anything.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload