'Retrieve all authorizations for challenges.
:param list domains: Domains for authorization
:param bool best_effort: Whether or not all authorizations are
required (this is useful in renewal)
:returns: List of authorization resources
:rtype: list
:raises .AuthorizationError: If unable to retrieve all
authorizations'

def get_authorizations(self, domains, best_effort=False):

    for domain in domains:
        self.authzr[domain] = self.acme.request_domain_challenges(domain)
    self._choose_challenges(domains)
    config = zope.component.getUtility(interfaces.IConfig)
    notify = zope.component.getUtility(interfaces.IDisplay).notification
    while self.achalls:
        resp = self._solve_challenges()
        logger.info('Waiting    for    verification...')
        if config.debug_challenges:
            notify('Challenges    loaded.    Press    continue    to    submit    to    CA.    Pass    "-v"    for    more    info    about    challenges.', pause=True)
        self._respond(resp, best_effort)
    self.verify_authzr_complete()
    retVal = [authzr for authzr in self.authzr.values() if (authzr.body.status == messages.STATUS_VALID)]
    if (not retVal):
        raise errors.AuthorizationError('Challenges    failed    for    all    domains')
    return retVal
