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
파일 보기 프로젝트 열기: jamesryanbell/cloudflare

공개 메소드들

메소드 설명
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