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.Installer(*args, **kwargs)[source]¶ Bases:
certbot.plugins.common.PluginAn installer base class with reverter and ssl_dhparam methods defined.
Installer plugins do not have to inherit from this class.
-
add_to_checkpoint(save_files, save_notes, temporary=False)[source]¶ Add files to a checkpoint.
Parameters: Raises: errors.PluginError -- when unable to add to checkpoint
-
finalize_checkpoint(title)[source]¶ Timestamp and save changes made through the reverter.
Parameters: title (str) -- Title describing checkpoint Raises: errors.PluginError -- when an error occurs
-
recovery_routine()[source]¶ Revert all previously modified files.
Reverts all modified files that have not been saved as a checkpoint
Raises: errors.PluginError -- If unable to recover the configuration
-
revert_temporary_config()[source]¶ Rollback temporary checkpoint.
Raises: errors.PluginError -- when unable to revert config
-
rollback_checkpoints(rollback=1)[source]¶ Rollback saved checkpoints.
Parameters: rollback (int) -- Number of checkpoints to revert Raises: errors.PluginError -- If there is a problem with the input or the function is unable to correctly revert the configuration
-
view_config_changes()[source]¶ Show all of the configuration changes that have taken place.
Raises: errors.PluginError -- If there is a problem while processing the checkpoints directories.
-
ssl_dhparams¶ Full absolute path to ssl_dhparams file.
-
updated_ssl_dhparams_digest¶ Full absolute path to digest of updated ssl_dhparams file.
-
-
class
certbot.plugins.common.Addr(tup, ipv6=False)[source]¶ Bases:
objectRepresents an virtual host address.
Parameters:
-
class
certbot.plugins.common.ChallengePerformer(configurator)[source]¶ Bases:
objectAbstract base for challenge performers.
Variables: - configurator -- Authenticator and installer plugin
- achalls (
listofKeyAuthorizationAnnotatedChallenge) -- Annotated challenges - indices (
listofint) -- Holds the indices of challenges from a larger array so the user of the class doesn't have to.
-
add_chall(achall, idx=None)[source]¶ Store challenge to be performed when perform() is called.
Parameters: - achall (KeyAuthorizationAnnotatedChallenge) -- Annotated challenge.
- idx (int) -- index to challenge in a larger array
-
perform()[source]¶ Perform all added challenges.
Returns: challenge responses Return type: listofacme.challenges.KeyAuthorizationChallengeResponse
-
class
certbot.plugins.common.TLSSNI01(configurator)[source]¶ Bases:
certbot.plugins.common.ChallengePerformerAbstract base for TLS-SNI-01 challenge performers
-
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
-