Created
January 11, 2016 15:18
-
-
Save elight/a78c566c5721b44ce794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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