Ask A Question

Notifications

You’re not receiving notifications from this thread.

How to setup SSL with a rails app

Francisco Quinones asked in General

So I have a ssl certification that I want to apply to my rails app. Im using puma on Heroku.

Reply

Hey Francisco,

Heroku has a free beta SSL offering that you can use (rather than the normal $20/mo to use SSL): https://devcenter.heroku.com/articles/ssl-beta

I believe you just need to use the command line to upload your certs and you should be good to go!

Reply

Chris Thanks as always.

Reply

I chris having a little problem. So I was following the Docs.

  1. got the CSR from heroku
  2. I got a godaddy cert ssl
  3. Update the DNS (heres where im having problem.)
Standard Wildcard SSL from godaddy
CSR files
server.csr
.server.key
server.pass.key
heroku certs:info
Fetching SSL certificate hypsilophodon-49522 info for myapp done
Certificate details:
Common Name(s): *.myapp.com
                myapp.com
Expires At:     ...
Issuer:        ...Go Daddy Secure Certificate Authority - G2
Starts At:      ...
Subject:        /OU=Domain Control Validated/CN=*.myapp.com
SSL certificate is self signed.
heroku certs
Name                               Common Name(s)                  Expires               Trusted  Type
....-49522  *.myapp.com, myapp.com                         ...                        False    SNI
On my DNS Management
CNAME   *   myapp.herokuapp.com
CNAME   www hbquality.herokuapp.com
Your certificate *.myapp.com expires on ...
Ensure you've updated your DNS to reflect the new target name. See domain table below.
heroku panel settin
Domain Name DNS Target
*.myapp.com   wildcard.myapp.com.herokudns.com
myapp.com  myapp.com.herokudns.com
www.myapp.com www.myapp.com.herokudns.com


I think im doing some setup wrong.

UPDATE:
Godaddy Cname

www.myapp.com.herokudns.com
wildcard.myapp.com.herokudns.com
Reply

I'm not an expert on this stuff and I've only used their legacy SSL setup, so unfortunately I don't know that I have any advice for you on this one. Hopefully someone else can weigh in here for you or you can check with Heroku support on it!

Reply

Thank you, Chris as always for the quick reply.

Reply

Got it working Chris. Just redo same step and got it working. thank you.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.