certbot.tests.acme_util module

ACME utilities for testing.

certbot.tests.acme_util.gen_combos(challbs: Iterable[acme.messages.ChallengeBody]) Tuple[Tuple[int], ...][source]

Generate natural combinations for challbs.

certbot.tests.acme_util.chall_to_challb(chall: acme.challenges.Challenge, status: acme.messages.Status) acme.messages.ChallengeBody[source]

Return ChallengeBody from Challenge.

certbot.tests.acme_util.gen_authzr(authz_status: acme.messages.Status, domain: str, challs: Iterable[acme.challenges.Challenge], statuses: Iterable[acme.messages.Status], combos: bool = True) acme.messages.AuthorizationResource[source]

Generate an authorization resource.

Parameters
  • authz_status (acme.messages.Status) – Status object

  • challs (list) – Challenge objects

  • statuses (list) – status of each challenge object

  • combos (bool) – Whether or not to add combinations