I have a ssl certificate for secure.mydomain.com. It's properly set up and I can access https://secure.mydomain.com without any warnings.
When I access a devise action like sign_in, the request is properly done in https. However, it doesn't find my ssl certificate. My deployment environment is heroku, so using a certificate with a root name is not an option. How can I tell devise where the ssl certificate lives?
I'm currently skirting around this by adding the subdomain to my login urls ("secure.mydomain.com/sign_in") via some url_for hackery. However, that locks the user into using the secure.mydomain.com domain. I tried redirecting the user back to the root domain after login, but their session is lost.
How can I get around this?