Check the authorization status is "valid" rather than "ready"

According to https://tools.ietf.org/html/rfc8555#section-7.1.4 the
status of an authorization object can only be "pending", "valid", or
"revoked".

An order can have a status of "ready" but never an authorization.
This commit is contained in:
Mike Gilfillan
2020-03-03 15:45:02 +00:00
parent 4c7b6b8e60
commit f1d31dee88

View File

@@ -286,7 +286,7 @@ class Client
sleep(1);
} while ($maxAttempts < 0 && $data['status'] == 'pending');
return (isset($data['status']) && $data['status'] == 'ready');
return (isset($data['status']) && $data['status'] == 'valid');
}
/**