SSL certificates can be intimidating but Heroku and DNSimple make the process easy. The following steps should take you less than 15 minutes.
Buy a wildcard certificate from DNSimple. The wildcard (*
) lets you use the same certificate on staging, production, and any other future subdomains (api, etc.).
Follow these instructions to download the private.key
from DNSimple's website, get the server.crt
from DNSimple via email, and generate the bundle.pem
Comodo bundle.
Follow these instructions to provision the SSL endpoint add-on.
Follow these instructions to add the Heroku SSL endpoint to DNSimple.
Make a one-line configuration change in your staging and production environment config files within your Rails app:
# config/environments/{staging,production}.rb
config.force_ssl = true
Deploy that change.
Now, if users type "yourdomain.com", they should be redirected to "https://www.yourdomain.com" and your browser's URL bar should display its appropriate indicator (perhaps a green lock) declaring the SSL certificate is valid.