Skip to content

Instantly share code, notes, and snippets.

@Epictetus
Forked from cjolly/godaddy-heroku-ssl.md
Created April 15, 2013 10:00
Show Gist options
  • Save Epictetus/5387083 to your computer and use it in GitHub Desktop.
Save Epictetus/5387083 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment