Kelunik\Acme\AcmeService class AcmeService

High level ACME client.

Summary

Properties

Methods

Properties

Methods

__construct — public function __construct(Kelunik\Acme\AcmeClient $acmeClient)

AcmeService constructor.

Type Parameter Description Default Value
Kelunik\Acme\AcmeClient $acmeClient ACME client none
register — public function register(string $email, string|null $agreement = null): Amp\Promise

Registers a new account on the server.

Type Parameter Description Default Value
string $email e-mail address for contact none
string|null $agreement agreement URI or null if not agreed yet null
requestChallenges — public function requestChallenges(string $dns): Amp\Promise

Requests challenges for a given DNS name.

Type Parameter Description Default Value
string $dns DNS name to request challenge for none
answerChallenge — public function answerChallenge(string $location, string $keyAuth): Amp\Promise

Answers a challenge and signals that the CA should validate it.

Type Parameter Description Default Value
string $location URI of the challenge none
string $keyAuth key authorization none
pollForChallenge — public function pollForChallenge(string $location): Amp\Promise

Polls until a challenge has been validated.

Type Parameter Description Default Value
string $location URI of the challenge none
requestCertificate — public function requestCertificate(string $csr): Amp\Promise

Requests a new certificate.

Type Parameter Description Default Value
string $csr certificate signing request none
pollForCertificate — public function pollForCertificate(string $location): Amp\Promise

Polls for a certificate.

Type Parameter Description Default Value
string $location URI of the certificate none
revokeCertificate — public function revokeCertificate(string $pem): Amp\Promise

Revokes a certificate.

Type Parameter Description Default Value
string $pem PEM encoded certificate none