Kelunik\Acme\AcmeClient class AcmeClient

Low level ACME client.

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(string $directoryUri, Kelunik\Acme\KeyPair $keyPair, Kelunik\Acme\HttpClient|null $http = null)

AcmeClient constructor.

Type Parameter Description Default Value
string $directoryUri URI to the ACME server directory none
Kelunik\Acme\KeyPair $keyPair account key pair none
Kelunik\Acme\HttpClient|null $http custom HTTP client, default client will be used if no value is provided null
get — public function get(string $resource): Amp\Promise

Retrieves a resource using a GET request.

Type Parameter Description Default Value
string $resource resource to fetch none
post — public function post(string $resource, array $payload): Amp\Promise

Retrieves a resource using a POST request.

Type Parameter Description Default Value
string $resource resource to fetch none
array $payload No documentation. none