certbot.configuration

Certbot user-supplied configuration.

class certbot.configuration.NamespaceConfig(namespace)[source]

Bases: object

Configuration wrapper around argparse.Namespace.

For more documentation, including available attributes, please see certbot.interfaces.IConfig. However, note that the following attributes are dynamically resolved using work_dir and relative paths defined in certbot.constants:

  • accounts_dir
  • csr_dir
  • in_progress_dir
  • key_dir
  • temp_checkpoint_dir

And the following paths are dynamically resolved using config_dir and relative paths defined in certbot.constants:

  • default_archive_dir
  • live_dir
  • renewal_configs_dir
Variables:namespace – Namespace typically produced by argparse.ArgumentParser.parse_args().
server_path

File path based on server.

renewal_hooks_dir

Path to directory with hooks to run with the renew subcommand.

renewal_pre_hooks_dir

Path to the pre-hook directory for the renew subcommand.

renewal_deploy_hooks_dir

Path to the deploy-hook directory for the renew subcommand.

renewal_post_hooks_dir

Path to the post-hook directory for the renew subcommand.

certbot.configuration.check_config_sanity(config)[source]

Validate command line options and display error message if requirements are not met.

Parameters:config – IConfig instance holding user configuration