Cloudflare\Zone\CustomSSL::update PHP Method

update() public method

Create a Keyless SSL configuration (permission needed: #ssl:edit)
public update ( string $zone_identifier, string $identifier, string $private_key, string $certificate, string | null $bundle_method = null )
$zone_identifier string API item identifier tag
$identifier string
$private_key string The zone's SSL certificate or certificate and the intermediate(s)
$certificate string The zone's private key
$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 update($zone_identifier, $identifier, $private_key, $certificate, $bundle_method = null)
    {
        $data = ['certificate' => $certificate, 'private_key' => $private_key, 'bundle_method' => $bundle_method];
        return $this->patch('zones/' . $zone_identifier . '/custom_certificates/' . $identifier, $data);
    }