PHP Class CloudFlare\Certificates

CloudFlare CA API to create CloudFlare-issued SSL certificates that can be installed on your origin server. Use your Certificates API Key as your User Service Key when calling these endpoints (see the section on request headers for details)
Author: James Bell ([email protected])
Inheritance: extends Api
Afficher le fichier Open project: jamesryanbell/cloudflare

Méthodes publiques

Méthode Description
certificates ( $page = null, $per_page = null, $direction = null ) List Certificates List all existing CloudFlare-issued Certificates for a given zone. Use your Certificates API Key as your User Service Key when calling this endpoint
create ( array $hostnames, string $request_type, string $csr, integer | null $requested_validity = null ) Create Certificate Create a CloudFlare-signed certificate. Use your Certificates API Key as your User Service Key when calling this endpoint
details ( string $identifier ) Certificate Details Get an existing certificate by its serial number. Use your Certificates API Key as your User Service Key when calling this endpoint
revoke ( string $identifier ) Revoke certificate Revoke a created certificate for a zone. Use your Certificates API Key as your User Service Key when calling this endpoint

Method Details

certificates() public méthode

List Certificates List all existing CloudFlare-issued Certificates for a given zone. Use your Certificates API Key as your User Service Key when calling this endpoint
public certificates ( $page = null, $per_page = null, $direction = null )

create() public méthode

Create Certificate Create a CloudFlare-signed certificate. Use your Certificates API Key as your User Service Key when calling this endpoint
public create ( array $hostnames, string $request_type, string $csr, integer | null $requested_validity = null )
$hostnames array Array of hostnames or wildcard names (e.g., *.example.com) bound to the certificate
$request_type string Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers)
$csr string The Certificate Signing Request (CSR). Must be newline-encoded.
$requested_validity integer | null The number of days for which the certificate should be valid

details() public méthode

Certificate Details Get an existing certificate by its serial number. Use your Certificates API Key as your User Service Key when calling this endpoint
public details ( string $identifier )
$identifier string API item identifier tag

revoke() public méthode

Revoke certificate Revoke a created certificate for a zone. Use your Certificates API Key as your User Service Key when calling this endpoint
public revoke ( string $identifier )
$identifier string API item identifier tag