Skip to content

Instantly share code, notes, and snippets.

@elight
Created January 11, 2016 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elight/a78c566c5721b44ce794 to your computer and use it in GitHub Desktop.
Save elight/a78c566c5721b44ce794 to your computer and use it in GitHub Desktop.
require 'json'
cert=File.read('cert.pem')
key=File.read('key.pem')
app = "afternoon-citadel-7280"
body = {
app: { id: app },
certificate_chain: cert,
private_key: key
}.to_json
puts `curl -kn -H "Accept: application/vnd.heroku+json; version=3.sni" -H 'Content-Type: application/json' https://api.mhale-1.herokudev.com/sni-endpoints -X POST -d '#{body}'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment