acme2 icon indicating copy to clipboard operation
acme2 copied to clipboard

Authorization deactivation

Open tkrynicki opened this issue 7 years ago • 2 comments

Hi

Is it possible to add Authorization deactivation feature? https://community.letsencrypt.org/t/authorization-deactivation/19860

tkrynicki avatar Oct 08 '18 23:10 tkrynicki

    /**
     * Deactivate an LetsEncrypt Authorization
     */
    public function deactivateOrder()
    {
        foreach ($this->_authorizationList as $authorization)
        {
            $jws = OpenSSLHelper::generateJWSOfKid(
                $authorization->authorizationUrl,
                Client::$runtime->account->getAccountUrl(),
                ['status' => 'deactivated']
            );

            list($code, $header, $body) = RequestHelper::post($authorization->authorizationUrl, $jws);

            if ($code != 200)
            {
                throw new OrderException('Deactivation failed'.", the code is: {$code}, the header is: {$header}, the body is: ".print_r($body, TRUE));
            }
            $this->removeLocalData();
            $this->populate($body);
        }
    }

tkrynicki avatar Oct 19 '18 23:10 tkrynicki

Can you describe your requirements in detail? I need to know why you need this feature.

stonemax avatar May 17 '19 03:05 stonemax