Search code examples
ruby-on-railssslherokudns

Add SSL to Heroku app and godaddy - Rails


I'm trying to setup SSL certs with heroku and godaddy. I've successfully created a cert with LetsEncrypt, and have received this message

Your certificate has been added successfully.  Update your application's DNS settings as follows
Domain                   Record Type  DNS Target
───────────────────────  ───────────  ─────────────────────────────────────
secure.lockdownjobs.com  CNAME        secure.lockdownjobs.com.herokudns.com
www.lockdownjobs.com     CNAME        www.lockdownjobs.com.herokudns.com

The part I'm struggling with is DNS Target how in godaddy do I point the domain at the DNS target?


Solution

  • Just add the CNAME in Godaddy. Go to your domain, click on DNS File settings and add a new CNAME:

    CNAME
    www
    Target
    secure.lockdownjobs.com.herokudns.com
    

    I recommend you read about how to add SSL certificate to Heroku: https://devcenter.heroku.com/articles/ssl-endpoint#setting-up-ssl-on-heroku

    And also the much easier way of doing it (Let Heroku do it): https://devcenter.heroku.com/articles/automated-certificate-management