Cloudflare\Zone\KeylessSSL::create PHP Method

create() public method

Create a Keyless SSL configuration (permission needed: #ssl:edit)
public create ( string $zone_identifier, string $host, integer $port, string $name, string $certificate, string | null $bundle_method = null )
$zone_identifier string API item identifier tag
$host string The keyless SSL host
$port integer The keyless SSL port used to commmunicate between CloudFlare and the client's Keyless SSL server
$name string The keyless SSL name
$certificate string The zone's SSL certificate or SSL certificate and 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
    public function create($zone_identifier, $host, $port, $name, $certificate, $bundle_method = null)
    {
        $data = ['host' => $host, 'port' => $port, 'name' => $name, 'certificate' => $certificate, 'bundle_method' => $bundle_method];
        return $this->post('zones/' . $zone_identifier . '/keyless_certificates', $data);
    }