Method: Dnsimple::Client::Certificates#download_certificate

Defined in:
lib/dnsimple/client/certificates.rb

#download_certificate(account_id, domain_id, certificate_id, options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::CertificateBundle>

Get the PEM-encoded certificate, along with the root certificate and intermediate chain.



90
91
92
93
94
# File 'lib/dnsimple/client/certificates.rb', line 90

def download_certificate(, domain_id, certificate_id, options = {})
  response = client.get(Client.versioned("/%s/domains/%s/certificates/%s/download" % [, domain_id, certificate_id]), options)

  Dnsimple::Response.new(response, Struct::CertificateBundle.new(response["data"]))
end