def _create_achalls(plugin):
 achalls = list()
 names = plugin.get_testable_domain_names()
 for domain in names:
  prefs = plugin.get_chall_pref(domain)
  for chall_type in prefs:
   if (chall_type == challenges.TLSSNI01):
    chall = challenges.TLSSNI01(token=os.urandom(challenges.TLSSNI01.TOKEN_SIZE))
    challb = acme_util.chall_to_challb(chall, messages.STATUS_PENDING)
    achall = achallenges.KeyAuthorizationAnnotatedChallenge(challb=challb, domain=domain, account_key=util.JWK)
    achalls.append(achall)
 return achalls

def _create_achalls ( plugin ) : achalls = list ( ) names = plugin . get_testable_domain_names ( ) for domain in names : prefs = plugin . get_chall_pref ( domain ) for chall_type in prefs : if ( chall_type == challenges . TLSSNI01 ) : chall = challenges . TLSSNI01 ( token = os . urandom ( challenges . TLSSNI01 . TOKEN_SIZE ) ) challb = acme_util . chall_to_challb ( chall , messages . STATUS_PENDING ) achall = achallenges . KeyAuthorizationAnnotatedChallenge ( challb = challb , domain = domain , account_key = util . JWK ) achalls . append ( achall ) return achalls
returns a list of annotated challenges to test on plugin .