letshelp_certbot¶
Tools for submitting server configurations
letshelp_certbot.apache¶
Certbot Apache configuration submission script
-
letshelp_certbot.apache.make_and_verify_selection(server_root, temp_dir)[source]¶ Copies server_root to temp_dir and verifies selection with the user
Parameters: - server_root (str) – Path to the Apache server root
- temp_dir (str) – Path to the temporary directory to copy files to
-
letshelp_certbot.apache.copy_config(server_root, temp_dir)[source]¶ Safely copies server_root to temp_dir and returns copied files
Parameters: - server_root (str) – Absolute path to the Apache server root
- temp_dir (str) – Path to the temporary directory to copy files to
Returns: List of copied files and a list of leaf directories where all contained files were copied
Return type: tupleoflistofstr
-
letshelp_certbot.apache.copy_file_without_comments(source, destination)[source]¶ Copies source to destination, removing comments
Parameters: - source (str) – Path to the file to be copied
- destination (str) – Path where source should be copied to
-
letshelp_certbot.apache.safe_config_file(config_file)[source]¶ Returns True if config_file can be safely copied
Parameters: config_file (str) – Path to an Apache configuration file Returns: True if config_file can be safely copied Return type: bool
-
letshelp_certbot.apache.setup_tempdir(args)[source]¶ Creates a temporary directory and necessary files for config
Parameters: args (argparse.Namespace) – Parsed command line arguments Returns: Path to temporary directory Return type: str
-
letshelp_certbot.apache.verify_config(args)[source]¶ Verifies server_root and config_file specify a valid config
Parameters: args (argparse.Namespace) – Parsed command line arguments
-
letshelp_certbot.apache.locate_config(apache_ctl)[source]¶ Uses the apachectl binary to find configuration files
Parameters: apache_ctl (str) – Path to apachectlbinaryReturns: Path to Apache server root and main configuration file Return type: tupleofstr