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:
-
letshelp_certbot.apache.
copy_config
(server_root, temp_dir)[source]¶ Safely copies server_root to temp_dir and returns copied files
Parameters: Returns: List of copied files and a list of leaf directories where all contained files were copied
Return type:
-
letshelp_certbot.apache.
copy_file_without_comments
(source, destination)[source]¶ Copies source to destination, removing comments
Parameters:
-
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 apachectl
binaryReturns: Path to Apache server root and main configuration file Return type: tuple
ofstr
-
letshelp_certbot.apache.
get_args
()[source]¶ Parses command line arguments
Returns: Parsed command line options Return type: argparse.Namespace