Skip to content

Instantly share code, notes, and snippets.

@astrotars
Forked from cjolly/godaddy-heroku-ssl.md
Created October 4, 2013 17:49
Show Gist options
  • Save astrotars/6829864 to your computer and use it in GitHub Desktop.
Save astrotars/6829864 to your computer and use it in GitHub Desktop.

How to use Heroku's SSL Endpoint with an SSL certificate purchased from GoDaddy.

Create a Private Key

https://devcenter.heroku.com/articles/csr

openssl genrsa -des3 -out server.orig.key 2048
openssl rsa -in server.orig.key -out server.key

Generate a Certificate Signing Request

openssl req -new -key server.key -out server.csr

Request Certificate from GoDaddy

  • Select Apache (2.0) as the web server when downloading
  • Unpack download into same dir as keys above
  • Combine root CA certificate
cat mydomain.com.crt gd_bundle.crt > final.crt

Add cert to heroku for use with ssl:endpoint

heroku certs:add final.crt server.key
# or if you're updating an existing 
heroku certs:update final.crt server.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment