SSL/https setup for address rather than my actual domain

Kevin K asked:

I have a subdomain of my site pointed to a rails app at I bought a certificate from godaddy and seem to have that all set up correctly. So that when I go to: or

it’s redirected to: or

The problem is that when I visit, I get the error: Safari can’t verify the identity of the website. But when I go to, I don’t get the error. I wanted this to be set up the other way, so that did not cause the error.

I’m not sure where I went wrong. I used when generating the key and when setting it up at Any ideas where I should look?

P.S. The old site is hosted at dreamhost and the DNS info is stored there as well. So I created a subdomain there of type cname which points to

My answer:

You need to install your SSL certificate at Heroku.

The very abbreviated process is:

heroku addons:add ssl
heroku certs:add server.crt server.key

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.