I am working on a Ruby on Rails SaaS application with a custom subdomain for each company. When a company signs up, the user is redirected to his subdomain.myapp.io.
The application is hosted on Heroku, and DNS is hosted on CloudFlare. I use the free SSL feature provided by CloudFlare, which works as expected for https://myapp.io .
My problem is with SSL activity for subdomains. I wonder if this is possible without buying a wildcard SSL certificate.
Configure CloudFlare DNS:
myapp.io. 300 IN CNAME myapp.herokuapp.com. *.myapp.io. 300 IN CNAME myapp.herokuapp.com.
Setting up Heroku domains:
myapp.io *.myapp.io
This works, but without SSL on the subdomains. You cannot use CloudFlare features (such as SSL Full) for wildcard subdomains (except for Entreprise users).
It seems to me that I need to buy an SSL wildcard certificate for my domain ($ 115 per year) and add the Endpoint Heroku SSL add-in ($ 7 / month). I'm wrong?
source share