Cloudflare\Zone\CustomSSL::create PHP Метод

create() публичный Метод

Create SSL configuration (permission needed: #ssl:edit) Upload a new SSL certificate for a zone
public create ( string $zone_identifier, string $certificate, string $private_key, string | null $bundle_method = null )
$zone_identifier string API item identifier tag
$certificate string The zone's private key
$private_key string The zone's SSL certificate or certificate and the intermediate(s)
$bundle_method string | null A ubiquitous bundle is a bundle that has a higher probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle is a bundle with the shortest chain and newest intermediates. A forced method attempt to use the certificate/chain as defined by the input "ubiquitous"
    public function create($zone_identifier, $certificate, $private_key, $bundle_method = null)
    {
        $data = ['certificate' => $certificate, 'private_key' => $private_key, 'bundle_method' => $bundle_method];
        return $this->post('zones/' . $zone_identifier . '/custom_certificates', $data);
    }