def install(config, plugins):
 try:
  (installer, _) = plug_sel.choose_configurator_plugins(config, plugins, 'install')
 except errors.PluginSelectionError as e:
  return e.message
 (domains, _) = _find_domains_or_certname(config, installer)
 le_client = _init_le_client(config, authenticator=None, installer=installer)
 assert (config.cert_path is not None)
 le_client.deploy_certificate(domains, config.key_path, config.cert_path, config.chain_path, config.fullchain_path)
 le_client.enhance_config(domains, config.chain_path)

def install ( config , plugins ) : try : ( installer , _ ) = plug_sel . choose_configurator_plugins ( config , plugins , 'install' ) except errors . PluginSelectionError as e : return e . message ( domains , _ ) = _find_domains_or_certname ( config , installer ) le_client = _init_le_client ( config , authenticator = None , installer = installer ) assert ( config . cert_path is not None ) le_client . deploy_certificate ( domains , config . key_path , config . cert_path , config . chain_path , config . fullchain_path ) le_client . enhance_config ( domains , config . chain_path )
install this package as the default twisted reactor .