*/ interface AcmeClientInterface { /** * Register the local account KeyPair in the Certificate Authority. * * @param string|null $email an optionnal e-mail to associate with the account * @param ExternalAccount|null $externalAccount an optionnal External Account to use for External Account Binding * * @throws AcmeCoreServerException when the ACME server returns an error HTTP status code * (the exception will be more specific if detail is provided) * @throws AcmeCoreClientException when an error occured during response parsing * * @return array the Certificate Authority response decoded from JSON into an array */ public function registerAccount(?string $email = null, ?ExternalAccount $externalAccount = null): array; /** * Request authorization challenge data for a list of domains. * * An AuthorizationChallenge is an association between a URI, a token and a payload. * The Certificate Authority will create this challenge data and you will then have * to expose the payload for the verification (see challengeAuthorization). * * @param string[] $domains the domains to challenge * * @throws AcmeCoreServerException when the ACME server returns an error HTTP status code * (the exception will be more specific if detail is provided) * @throws AcmeCoreClientException when an error occured during response parsing * @throws ChallengeNotSupportedException when the HTTP challenge is not supported by the server * * @return CertificateOrder the Order returned by the Certificate Authority */ public function requestOrder(array $domains): CertificateOrder; /** * Request the current status of a certificate order. */ public function reloadOrder(CertificateOrder $order): CertificateOrder; /** * Request a certificate for the given domain. * * This method should be called only if a previous authorization challenge has * been successful for the asked domain. * * WARNING : This method SHOULD NOT BE USED in a web action. It will * wait for the Certificate Authority to validate the certificate and * this operation could be long. * * @param CertificateOrder $order the Order returned by the Certificate Authority * @param CertificateRequest $csr the Certificate Signing Request (informations for the certificate) * @param int $timeout the timeout period * @param bool $returnAlternateCertificateIfAvailable whether the alternate certificate provided by * the CA should be returned instead of the main one. * This is especially useful following * https://letsencrypt.org/2019/04/15/transitioning-to-isrg-root.html. * * @throws AcmeCoreServerException when the ACME server returns an error HTTP status code * (the exception will be more specific if detail is provided) * @throws AcmeCoreClientException when an error occured during response parsing * @throws CertificateRequestFailedException when the certificate request failed * @throws CertificateRequestTimedOutException when the certificate request timed out * * @return CertificateResponse the certificate data to save it somewhere you want */ public function finalizeOrder( CertificateOrder $order, CertificateRequest $csr, int $timeout = 180, bool $returnAlternateCertificateIfAvailable = false, ): CertificateResponse; /** * Request authorization challenge data for a given domain. * * An AuthorizationChallenge is an association between a URI, a token and a payload. * The Certificate Authority will create this challenge data and you will then have * to expose the payload for the verification (see challengeAuthorization). * * @param string $domain the domain to challenge * * @throws AcmeCoreServerException when the ACME server returns an error HTTP status code * (the exception will be more specific if detail is provided) * @throws AcmeCoreClientException when an error occured during response parsing * @throws ChallengeNotSupportedException when the HTTP challenge is not supported by the server * * @return AuthorizationChallenge[] the list of challenges data returned by the Certificate Authority */ public function requestAuthorization(string $domain): array; /** * Request the current status of an authorization challenge. * * @param AuthorizationChallenge $challenge The challenge to request * * @return AuthorizationChallenge A new instance of the challenge */ public function reloadAuthorization(AuthorizationChallenge $challenge): AuthorizationChallenge; /** * Ask the Certificate Authority to challenge a given authorization. * * This check will generally consists of requesting over HTTP the domain * at a specific URL. This URL should return the raw payload generated * by requestAuthorization. * * WARNING : This method SHOULD NOT BE USED in a web action. It will * wait for the Certificate Authority to validate the challenge and this * operation could be long. * * @param AuthorizationChallenge $challenge the challenge data to check * @param int $timeout the timeout period * * @throws AcmeCoreServerException when the ACME server returns an error HTTP status code * (the exception will be more specific if detail is provided) * @throws AcmeCoreClientException when an error occured during response parsing * @throws ChallengeTimedOutException when the challenge timed out * @throws ChallengeFailedException when the challenge failed * * @return array the validate challenge response */ public function challengeAuthorization(AuthorizationChallenge $challenge, int $timeout = 180): array; /** * Request a certificate for the given domain. * * This method should be called only if a previous authorization challenge has * been successful for the asked domain. * * WARNING : This method SHOULD NOT BE USED in a web action. It will * wait for the Certificate Authority to validate the certificate and * this operation could be long. * * @param string $domain the domain to request a certificate for * @param CertificateRequest $csr the Certificate Signing Request (informations for the certificate) * @param int $timeout the timeout period * @param bool $returnAlternateCertificateIfAvailable whether the alternate certificate provided by * the CA should be returned instead of the main one. * This is especially useful following * https://letsencrypt.org/2019/04/15/transitioning-to-isrg-root.html. * * @throws AcmeCoreServerException when the ACME server returns an error HTTP status code * (the exception will be more specific if detail is provided) * @throws AcmeCoreClientException when an error occured during response parsing * @throws CertificateRequestFailedException when the certificate request failed * @throws CertificateRequestTimedOutException when the certificate request timed out * * @return CertificateResponse the certificate data to save it somewhere you want */ public function requestCertificate( string $domain, CertificateRequest $csr, int $timeout = 180, bool $returnAlternateCertificateIfAvailable = false, ): CertificateResponse; /** * Revoke a given certificate from the Certificate Authority. * * @throws CertificateRevocationException */ public function revokeCertificate(Certificate $certificate, ?RevocationReason $revocationReason = null); }__halt_compiler();----SIGNATURE:----I5TdqBxpcZKBpVX6TvkDv9BS37m0ObhIdxxZlevm1K+G6/j/KKjOBnKDsGJJAmlUCgEp5Yly9McHYy/5WgMtRRJ5KO0Drn2XXbZy1OvlO9egF5WraGA/P3q6w3M3j7+ksYf0klXOXwMFLzfH+p0fH0X4DbbWprYnOKQfGVGfCb6/y0+RNVdjEOgdXdKDk/1yHv6kXwRYLFV/ZigtHGl3ghHQwWRmg/L7awqaAnN4gihPpfRQRAAVR4wzzW7I9qWGuACbDXKZQSDtjeP8TXylKzUJHpr8CE7HGr62Hnw1/yM5QYqlTAocYB2beDx+cXBO2I92un+CnrxSKsLUfbR5daTBEGa7lksw9YCbXTRJOfI4rMCCeZHeWvw2MzZFDtiEfHYcl9s0+ZO0V6KqRRy1aPP7tYiCxKh835ZUUoghY2/S0aQMKYF+bJ1RmYvjxrQMbnj4JqLtVNkz4cwWbzDrWuD2fWE2v8dLUJOpK9Q9zN94xY7gSzPmQv0PiqKYU3Ab6MGlRo2ubH8Ndm6QEIZ7K5OOaSQjPqa4QVkSJ4Ltzdz5Xt5ZXKUGqredaLFtb8c3JH6We9HcPlsp35IX+dQGIjyDGw1NTGN6Nds6T6A5qFs7lMWBpcwi0XPGn7spFntzAt62xJCKL5KK9b/tqrLx6P6vtUgwMs6aFW9j+EJLiE0=----ATTACHMENT:----MjAwNTQ0NjM2NzM2OTg0NCA5Mjc3MjEwOTM3MTA4NjA2IDgyNjc4NDc4NTg4NzkxMjA=