Cloudflare\Zone\SSL\Analyze::analyze PHP Method

analyze() public method

Analyze Certificate (permission needed: #ssl:read) Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.
public analyze ( string $identifier, string $certificate, string | null $bundle_method = null )
$identifier string
$certificate 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
    public function analyze($identifier, $certificate, $bundle_method = null)
    {
        $data = ['certificate' => $certificate, 'bundle_method' => $bundle_method];
        return $this->post('/zones/' . $identifier . '/ssl/analyze', $data);
    }
Analyze