lib/cloudflare_client/zone/custom_ssl.rb
##
# create custom ssl for a zone
create custom ssl for a zone
create custom ssl for a zone
def create(certificate:, private_key:, bundle_method: nil)
    id_check('certificate', certificate)
    id_check('private_key', private_key)
    bundle_method_check(bundle_method) unless bundle_method.nil?
    data = {certificate: certificate, private_key: private_key}
    data[:bundle_method] = bundle_method unless bundle_method.nil?
    cf_post(path: "/zones/#{zone_id}/custom_certificates", data: data)
  end
def create ( certificate : , private_key : , bundle_method : nil ) id_check ( 'certificate' , certificate ) id_check ( 'private_key' , private_key ) bundle_method_check ( bundle_method ) unless bundle_method . nil? data = { certificate : certificate , private_key : private_key } data [ :bundle_method ] = bundle_method unless bundle_method . nil? cf_post ( path : "/zones/#{zone_id}/custom_certificates" , data : data ) end
create custom ssl for a zone
create custom ssl for a zone
# TODO: validate the cert/key using openssl?  Could be difficult if they are # privately generated
certificate
<not_specific>
private_key
<not_specific>
bundle_method
<not_specific>