PHP Класс 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)
Автор: James Bell ([email protected])
Наследование: extends Api
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

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

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() публичный Метод

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() публичный Метод

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() публичный Метод

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