Deactivating an Authorization
Hi!
Is it possible to deactivate a valid authorization (status = valid)?
[status] => valid
[contact] => Array
(
[0] => mailto:xxxxxxx
)
[termsOfServiceAgreed] => 1
[orders] => https://api.buypass.com/acme/acct/xxxxx/orders
https://tools.ietf.org/html/rfc8555#section-7.5.2
I sent the following to the authorization url:
{
"protected": {
"alg": "RS256",
"kid": "https://api.buypass.com/acme/acct/xxxxxxxxx",
"nonce": "xxxxxxxxxxxx",
"url": "https://api.buypass.com/acme-v02/authz/xxxxxxxx"
},
"payload": {
"status": "deactivated"
},
"signature": "xxxxxx"
}
The API responded with:
[type] => urn:ietf:params:acme:error:malformed
[detail] => Authorization status-change request was malformed. Status field value was 'null', which is incorrect
[code] => 400
[message] => MALFORMED_BAD_REQUEST
[details] => HTTP 400 Bad Request
Am I doing something wrong, or is the error message missleading and this feature isn't available?
Thanks!
Stefan
5 replies
-
Update: I just tested it. It works with the Test environment (https://api.test4.buypass.no/acme/directory) the Problem only exists in the Production environment (https://api.buypass.com/acme/directory)
-
Hi Stefan
Thanks for reporting the issue and detailed info. We have identified the bug and fixed it in test environment.
We plan to deploy the fix to production. We will notify here once this is done.
Regards,
Andriy
-
Hi Andriy Mahats
Thank you very much! Looking forward to the notification :)
-
Hi Stefan
We have released a fix today to resolve this issue in our production environment.
Regards,
Andriy