Skip to content

Instantly share code, notes, and snippets.

@dlitvakb
Created February 1, 2013 18:54
Show Gist options
  • Select an option

  • Save dlitvakb/4693251 to your computer and use it in GitHub Desktop.

Select an option

Save dlitvakb/4693251 to your computer and use it in GitHub Desktop.
require 'netdnarws'
api = NetDNARWS::NetDNA.new("alias", "key", "secret")
certData = File.read('/path/to/ssl/demo.crt')
certKeyData = File.read('/path/to/ssl/demo.key')
api.post("/zones/pull/{zoneid}/ssl.json", {'ssl_crt' => certData,'ssl_key' => certKeyData})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment