certbot.plugins.common¶
Plugin common functions.
-
certbot.plugins.common.option_namespace(name)[source]¶ ArgumentParser options namespace (prefix of all options).
-
certbot.plugins.common.dest_namespace(name)[source]¶ ArgumentParser dest namespace (prefix of all destinations).
-
class
certbot.plugins.common.Plugin(config, name)[source]¶ Bases:
objectGeneric plugin.
-
classmethod
add_parser_arguments(add)[source]¶ Add plugin arguments to the CLI argument parser.
NOTE: If some of your flags interact with others, you can use cli.report_config_interaction to register this to ensure values are correctly saved/overridable during renewal.
Parameters: add (callable) – Function that proxies calls to argparse.ArgumentParser.add_argumentprepending options with unique plugin name prefix.
-
classmethod
inject_parser_options(parser, name)[source]¶ Inject parser options.
See
inject_parser_optionsfor docs.
-
option_namespace¶ ArgumentParser options namespace (prefix of all options).
-
dest_namespace¶ ArgumentParser dest namespace (prefix of all destinations).
-
classmethod
-
class
certbot.plugins.common.Addr(tup, ipv6=False)[source]¶ Bases:
objectRepresents an virtual host address.
Parameters:
-
class
certbot.plugins.common.TLSSNI01(configurator)[source]¶ Bases:
objectAbstract base for TLS-SNI-01 challenge performers
-
add_chall(achall, idx=None)[source]¶ Add challenge to TLSSNI01 object to perform at once.
Parameters: - achall (KeyAuthorizationAnnotatedChallenge) – Annotated TLSSNI01 challenge.
- idx (int) – index to challenge in a larger array
-
get_cert_path(achall)[source]¶ Returns standardized name for challenge certificate.
Parameters: achall (KeyAuthorizationAnnotatedChallenge) – Annotated tls-sni-01 challenge. Returns: certificate file name Return type: str
-